changeset 2aa7804c9651 in tryton:4.6
details: https://hg.tryton.org/tryton?cmd=changeset;node=2aa7804c9651
description:
        Replace child_of target only if it is not a related field

        issue8609
        review285911002
        (grafted from 4cd1ebee3cd56cf5c58144c50f845af519b9fc7a)
diffstat:

 tryton/common/domain_inversion.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 80668a6d7cac -r 2aa7804c9651 tryton/common/domain_inversion.py
--- a/tryton/common/domain_inversion.py Sun Sep 01 23:39:35 2019 +0200
+++ b/tryton/common/domain_inversion.py Mon Sep 02 18:34:55 2019 +0200
@@ -105,7 +105,7 @@
     if domain in ('AND', 'OR'):
         return domain
     elif is_leaf(domain):
-        if 'child_of' in domain[1]:
+        if 'child_of' in domain[1] and '.' not in domain[0]:
             if len(domain) == 3:
                 return domain
             else:

Reply via email to