changeset ed2e5f9404c7 in sao:5.2 details: https://hg.tryton.org/sao?cmd=changeset;node=ed2e5f9404c7 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 0ccf80b0aead -r ed2e5f9404c7 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 @@ -2167,7 +2167,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 {