From ccf9708565334c833549a42420b082569f293d98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 11 Jan 2022 23:03:06 +0100 Subject: [PATCH] Use first the dotted name variable in the PYSON context issue11109 review383991002 --- tryton/pyson.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tryton/pyson.py b/tryton/pyson.py index 84e117df6e..81c6281307 100644 --- a/tryton/pyson.py +++ b/tryton/pyson.py @@ -154,7 +154,7 @@ class Eval(PYSON): @staticmethod def eval(dct, context): - if '.' in dct['v']: + if '.' in dct['v'] and dct['v'] not in context: base, name = dct['v'].split('.', 1) return Eval.eval({ 'v': name,