tryton-sao 6.8.10 → 6.8.11
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__: '6.8.
|
|
4
|
+
__version__: '6.8.11',
|
|
5
5
|
};
|
|
6
6
|
|
|
7
7
|
(function() {
|
|
@@ -5863,18 +5863,18 @@ var Sao = {
|
|
|
5863
5863
|
if ((domain instanceof Array) &&
|
|
5864
5864
|
(domain.length == 1)) {
|
|
5865
5865
|
let [name, operator, value, ...model] = domain[0];
|
|
5866
|
-
|
|
5867
|
-
|
|
5866
|
+
const count = name.split('.').length - 1;
|
|
5867
|
+
if (
|
|
5868
|
+
(operator == '=' ||
|
|
5869
|
+
(single_value && operator == 'in' && value.length == 1)) &&
|
|
5870
|
+
(!count ||
|
|
5871
|
+
((count === 1) && model.length && name.endsWith('.id')))) {
|
|
5868
5872
|
value = operator == '=' ? value : value[0];
|
|
5869
|
-
var count = 0;
|
|
5870
5873
|
if (model.length && name.endsWith('.id')) {
|
|
5871
|
-
count = 1;
|
|
5872
5874
|
model = model[0];
|
|
5873
5875
|
value = [model, value];
|
|
5874
5876
|
}
|
|
5875
|
-
|
|
5876
|
-
return [true, name, value];
|
|
5877
|
-
}
|
|
5877
|
+
return [true, name, value];
|
|
5878
5878
|
}
|
|
5879
5879
|
}
|
|
5880
5880
|
return [false, null, null];
|