From 45d7a96a9059890b6601d1bf8833faafcf4bd3d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 19 Apr 2022 13:24:43 +0200 Subject: [PATCH] Always combine Time when setting DateTime with a Date issue11346 review368381008 (grafted from 35a2da4a20d8590c2d97a4d4331f7ec2f9034367) --HG-- branch : 6.0 --- src/model.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/model.js b/src/model.js index 930a11cdf4..ecbea7adad 100644 --- a/src/model.js +++ b/src/model.js @@ -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,