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 CHANGED
@@ -1,4 +1,9 @@
1
1
 
2
+ Version 6.8.11 - 2024-03-03
3
+ ---------------------------
4
+ * Bug fixes (see mercurial logs for details)
5
+
6
+
2
7
  Version 6.8.10 - 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__: '6.8.10',
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
- if (operator == '=' ||
5867
- (single_value && operator == 'in' && value.length == 1)) {
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
- if ((name.split('.').length - 1) == count) {
5876
- return [true, name, value];
5877
- }
5877
+ return [true, name, value];
5878
5878
  }
5879
5879
  }
5880
5880
  return [false, null, null];