details:   https://code.tryton.org/tryton/commit/3746bba56dea
branch:    7.0
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 646f4fc297e4 -r 3746bba56dea 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]

Reply via email to