tryton-sao 6.2.7 → 6.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ Version 6.2.8 - 2022-05-06
2
+ * Bug fixes (see mercurial logs for details)
3
+
1
4
  Version 6.2.7 - 2022-04-15
2
5
  * Bug fixes (see mercurial logs for details)
3
6
 
@@ -3179,7 +3179,7 @@ var Sao = {};
3179
3179
  };
3180
3180
 
3181
3181
  Sao.common.parse_time = function(format, value) {
3182
- if (jQuery.isEmptyObject(value)) {
3182
+ if (!value) {
3183
3183
  return null;
3184
3184
  }
3185
3185
  var getNumber = function(pattern) {
@@ -8138,10 +8138,11 @@ var Sao = {};
8138
8138
  this.on_change_with(fieldnames);
8139
8139
  var callback = function() {
8140
8140
  if (display) {
8141
- return this.group.root_group.screens
8142
- .forEach(function(screen) {
8141
+ return jQuery.when.apply(
8142
+ jQuery, this.group.root_group.screens
8143
+ .map(function(screen) {
8143
8144
  return screen.display();
8144
- });
8145
+ }));
8145
8146
  }
8146
8147
  }.bind(this);
8147
8148
  if (validate) {
@@ -8942,10 +8943,8 @@ var Sao = {};
8942
8943
  value = null;
8943
8944
  }
8944
8945
  } else if (value.isDate) {
8945
- current_value = this.get(record);
8946
- if (current_value) {
8947
- value = Sao.DateTime.combine(value, current_value);
8948
- }
8946
+ current_value = this.get(record) || Sao.Time();
8947
+ value = Sao.DateTime.combine(value, current_value);
8949
8948
  }
8950
8949
  }
8951
8950
  Sao.field.DateTime._super.set_client.call(this, record, value,