changeset 4ff32309fe0f in proteus:default
details: https://hg.tryton.org/proteus?cmd=changeset&node=4ff32309fe0f
description:
Use first the dotted name variable in the PYSON context
issue11279
review382041002
diffstat:
proteus/pyson.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r a6e66a14f5c8 -r 4ff32309fe0f proteus/pyson.py
--- a/proteus/pyson.py Sun Mar 06 13:46:49 2022 +0100
+++ b/proteus/pyson.py Sun Mar 06 13:48:44 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,