details: https://code.tryton.org/tryton/commit/8d6ff8808c45
branch: 7.8
user: Nicolas Évrard <[email protected]>
date: Wed Feb 12 18:59:33 2025 +0100
description:
Synchronize trytond and tryton domain_inversion implementations
The commit d826376d08a5 was not correctly copied.
(grafted from 191f2e9503a1a2598810067689b7a14d67eef138)
diffstat:
trytond/trytond/tools/domain_inversion.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r 1bf015f99980 -r 8d6ff8808c45 trytond/trytond/tools/domain_inversion.py
--- a/trytond/trytond/tools/domain_inversion.py Fri Apr 24 16:16:27 2026 +0200
+++ b/trytond/trytond/tools/domain_inversion.py Wed Feb 12 18:59:33 2025 +0100
@@ -433,7 +433,8 @@
and operator == 'in' and len(value) == 1))
and (not count
or (count == 1 and model and name.endswith('.id')))):
- value = value if operator == '=' and single_value else value[0]
+ if operator == 'in' and single_value:
+ value = value[0]
if model and name.endswith('.id'):
model = model[0]
value = [model, value]