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 CHANGED
@@ -1,4 +1,9 @@
1
1
 
2
+ Version 7.0.8 - 2024-03-03
3
+ --------------------------
4
+ * Bug fixes (see mercurial logs for details)
5
+
6
+
2
7
  Version 7.0.7 - 2024-02-15
3
8
  --------------------------
4
9
  * Bug fixes (see mercurial logs for details)
@@ -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.7',
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
- if (operator == '=' ||
5943
- (single_value && operator == 'in' && value.length == 1)) {
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
- if ((name.split('.').length - 1) == count) {
5952
- return [true, name, value];
5953
- }
5953
+ return [true, name, value];
5954
5954
  }
5955
5955
  }
5956
5956
  return [false, null, null];