changeset 52e9cf630f98 in sao:6.0 details: https://hg.tryton.org/sao?cmd=changeset&node=52e9cf630f98 description: Always combine Time when setting DateTime with a Date
issue11346 review368381008 (grafted from 35a2da4a20d8590c2d97a4d4331f7ec2f9034367) diffstat: src/model.js | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diffs (16 lines): diff -r e4600348da8b -r 52e9cf630f98 src/model.js --- a/src/model.js Sat Apr 16 11:23:26 2022 +0200 +++ b/src/model.js Tue Apr 19 13:24:43 2022 +0200 @@ -1821,10 +1821,8 @@ value = null; } } else if (value.isDate) { - current_value = this.get(record); - if (current_value) { - value = Sao.DateTime.combine(value, current_value); - } + current_value = this.get(record) || Sao.Time(); + value = Sao.DateTime.combine(value, current_value); } } Sao.field.DateTime._super.set_client.call(this, record, value,