changeset ca9898677cfb in sao:5.0
details: https://hg.tryton.org/sao?cmd=changeset;node=ca9898677cfb
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 68c47b51bdd4 -r ca9898677cfb 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 {

Reply via email to