changeset 274f475e7c03 in sao:4.8 details: https://hg.tryton.org/sao?cmd=changeset;node=274f475e7c03 description: Replace child_of target only if it is not a related field
issue8609 review285911002 (grafted from c0d29e5b871ab60855a8cb6dd0e8a6d8916fe75c) diffstat: src/common.js | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diffs (12 lines): diff -r 1f6f4158f261 -r 274f475e7c03 src/common.js --- a/src/common.js Mon Sep 02 18:33:18 2019 +0200 +++ b/src/common.js Mon Sep 02 18:34:55 2019 +0200 @@ -2153,7 +2153,7 @@ if (~['AND', 'OR'].indexOf(domain)) { return domain; } else if (this.is_leaf(domain)) { - if (domain[1].contains('child_of')) { + if (domain[1].contains('child_of') && !domain[0].contains('.')) { if (domain.length == 3) { return domain; } else {