Replace child_of target only if it is not a related field

issue8609
review285911002
This commit is contained in:
Cédric Krier
2019-09-02 18:34:55 +02:00
parent 38bbe4d820
commit dd1626e5cf
+1 -1
View File
@@ -140,7 +140,7 @@ def inverse_leaf(domain):
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: