changeset 7121bacd50e1 in tryton:default
details: https://hg.tryton.org/tryton?cmd=changeset&node=7121bacd50e1
description:
        Use first the dotted name variable in the PYSON context

        issue11109
        review383991002
diffstat:

 tryton/pyson.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 4b2959d91dfb -r 7121bacd50e1 tryton/pyson.py
--- a/tryton/pyson.py   Tue Jan 11 23:01:26 2022 +0100
+++ b/tryton/pyson.py   Tue Jan 11 23:03:06 2022 +0100
@@ -154,7 +154,7 @@
 
     @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,

Reply via email to