From 9431e1ba3f779120822d3962b600bd458ca8d097 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 (grafted from 7121bacd50e12369b68e3152398238d0f744a468) --HG-- branch : 6.0 --- tryton/pyson.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tryton/pyson.py b/tryton/pyson.py index 0b28b61ddf..0740e0a892 100644 --- a/tryton/pyson.py +++ b/tryton/pyson.py @@ -153,7 +153,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,