tryton-sao 6.0.39 → 6.0.40

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.40 - 2024-04-17
3
+ ---------------------------
4
+ * Bug fixes (see mercurial logs for details)
5
+
6
+
2
7
  Version 6.0.39 - 2024-04-04
3
8
  ---------------------------
4
9
  * Bug fixes (see mercurial logs for details)
@@ -1721,7 +1721,7 @@ var Sao = {};
1721
1721
  value = new Sao.PYSON.Bool(value);
1722
1722
  }
1723
1723
  } else if (typeof value != 'boolean') {
1724
- value = Sao.PYSON.Bool(value);
1724
+ value = new Sao.PYSON.Bool(value);
1725
1725
  }
1726
1726
  this._value = value;
1727
1727
  },
@@ -1740,7 +1740,7 @@ var Sao = {};
1740
1740
  });
1741
1741
 
1742
1742
  Sao.PYSON.Not.eval_ = function(value, context) {
1743
- return !value.v;
1743
+ return !Sao.PYSON.Bool.eval_(value, context);
1744
1744
  };
1745
1745
  Sao.PYSON.Not.init_from_object = function(obj) {
1746
1746
  return new Sao.PYSON.Not(obj.v);
@@ -23757,7 +23757,7 @@ function eval_pyson(value){
23757
23757
  record._changed.id = added;
23758
23758
  }
23759
23759
  } else {
23760
- result = response_id != 'RESPONSE_CANCEL';
23760
+ result = (response_id != 'RESPONSE_CANCEL') && !readonly;
23761
23761
  }
23762
23762
  (cancel_prm || jQuery.when()).then(function() {
23763
23763
  this.callback(result);