changeset 706b210eebe8 in proteus:6.0
details: https://hg.tryton.org/proteus?cmd=changeset&node=706b210eebe8
description:
Use first the dotted name variable in the PYSON context
issue11279
review382041002
(grafted from 4ff32309fe0f5a4ea71e0dd68726069190b42394)
diffstat:
proteus/pyson.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 91fea3b20c27 -r 706b210eebe8 proteus/pyson.py
--- a/proteus/pyson.py Tue Mar 01 19:23:27 2022 +0100
+++ b/proteus/pyson.py Sun Mar 06 13:48:44 2022 +0100
@@ -153,7 +153,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,