changeset 35a2da4a20d8 in sao:default
details: https://hg.tryton.org/sao?cmd=changeset&node=35a2da4a20d8
description:
Always combine Time when setting DateTime with a Date
issue11346
review368381008
diffstat:
src/model.js | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diffs (16 lines):
diff -r d81e632a687c -r 35a2da4a20d8 src/model.js
--- a/src/model.js Mon Apr 18 19:42:08 2022 +0200
+++ b/src/model.js Tue Apr 19 13:24:43 2022 +0200
@@ -1775,10 +1775,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,