details: https://code.tryton.org/tryton/commit/191f2e9503a1
branch: default
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.
diffstat:
trytond/trytond/tools/domain_inversion.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r 4fea86cbae6a -r 191f2e9503a1 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]