changeset edef4ae57a20 in tryton:5.0 details: https://hg.tryton.org/tryton?cmd=changeset;node=edef4ae57a20 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 fd018ede3d51 -r edef4ae57a20 tryton/common/domain_inversion.py --- a/tryton/common/domain_inversion.py Sun Sep 01 23:38:34 2019 +0200 +++ b/tryton/common/domain_inversion.py Mon Sep 02 18:34:55 2019 +0200 @@ -140,7 +140,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: