tryton-sao 6.0.45 → 6.0.46

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,4 +1,9 @@
1
1
 
2
+ Version 6.0.46 - 2024-09-01
3
+ ---------------------------
4
+ * Bug fixes (see mercurial logs for details)
5
+
6
+
2
7
  Version 6.0.45 - 2024-08-01
3
8
  ---------------------------
4
9
  * Bug fixes (see mercurial logs for details)
@@ -4085,7 +4085,7 @@ var Sao = {};
4085
4085
  },
4086
4086
  stringable: function(domain) {
4087
4087
  var stringable_ = function(clause) {
4088
- if (!clause) {
4088
+ if (!clause || jQuery.isEmptyObject(clause)) {
4089
4089
  return true;
4090
4090
  }
4091
4091
  var is_array = function(e) {
@@ -22458,7 +22458,15 @@ function eval_pyson(value){
22458
22458
  }, ctx, false);
22459
22459
  },
22460
22460
  _action_key: function(data) {
22461
- return data.x;
22461
+ var x = data.x;
22462
+ var type = this.view.screen.model.fields[this.xfield.name]
22463
+ .description.type;
22464
+ if (x && (type == 'datetime')) {
22465
+ x = Sao.DateTime(x).toString();
22466
+ } else if (x && (type == 'date')) {
22467
+ x = Sao.Date(x).toString();
22468
+ }
22469
+ return x;
22462
22470
  }
22463
22471
  });
22464
22472