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 +5 -0
- package/dist/tryton-sao.js +3 -3
- package/dist/tryton-sao.min.js +2 -2
- package/package.json +1 -1
- package/src/pyson.js +2 -2
- package/src/window.js +1 -1
- package/tests/sao.js +18 -0
package/CHANGELOG
CHANGED
package/dist/tryton-sao.js
CHANGED
|
@@ -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
|
|
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);
|