tryton-sao 7.0.7 → 7.0.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 +5 -0
- package/dist/tryton-sao.js +8 -8
- package/dist/tryton-sao.min.js +2 -2
- package/package.json +1 -1
- package/src/common.js +7 -7
- package/src/sao.js +1 -1
- package/tests/sao.js +2 -0
package/CHANGELOG
CHANGED
package/dist/tryton-sao.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* This file is part of Tryton. The COPYRIGHT file at the top level of
|
|
2
2
|
this repository contains the full copyright notices and license terms. */
|
|
3
3
|
var Sao = {
|
|
4
|
-
__version__: '7.0.
|
|
4
|
+
__version__: '7.0.8',
|
|
5
5
|
};
|
|
6
6
|
|
|
7
7
|
(function() {
|
|
@@ -5939,18 +5939,18 @@ var Sao = {
|
|
|
5939
5939
|
if ((domain instanceof Array) &&
|
|
5940
5940
|
(domain.length == 1)) {
|
|
5941
5941
|
let [name, operator, value, ...model] = domain[0];
|
|
5942
|
-
|
|
5943
|
-
|
|
5942
|
+
const count = name.split('.').length - 1;
|
|
5943
|
+
if (
|
|
5944
|
+
(operator == '=' ||
|
|
5945
|
+
(single_value && operator == 'in' && value.length == 1)) &&
|
|
5946
|
+
(!count ||
|
|
5947
|
+
((count === 1) && model.length && name.endsWith('.id')))) {
|
|
5944
5948
|
value = operator == '=' ? value : value[0];
|
|
5945
|
-
var count = 0;
|
|
5946
5949
|
if (model.length && name.endsWith('.id')) {
|
|
5947
|
-
count = 1;
|
|
5948
5950
|
model = model[0];
|
|
5949
5951
|
value = [model, value];
|
|
5950
5952
|
}
|
|
5951
|
-
|
|
5952
|
-
return [true, name, value];
|
|
5953
|
-
}
|
|
5953
|
+
return [true, name, value];
|
|
5954
5954
|
}
|
|
5955
5955
|
}
|
|
5956
5956
|
return [false, null, null];
|