From 3e65c637107a4fdfac0addccbbcc971198829cf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 22 Mar 2012 10:18:47 +0100 Subject: [PATCH] Don't use a nested context dictionary to evaluate record expression The nested context dictionary override the value of the fields. issue2506 --- tryton/gui/window/view_form/model/record.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tryton/gui/window/view_form/model/record.py b/tryton/gui/window/view_form/model/record.py index 592c762981..1acefa1ffc 100644 --- a/tryton/gui/window/view_form/model/record.py +++ b/tryton/gui/window/view_form/model/record.py @@ -447,7 +447,7 @@ class Record(SignalEvent): if check_load: self._check_load() ctx = rpc.CONTEXT.copy() - ctx['context'] = ctx + ctx['context'] = ctx.copy() for name, field in self.group.fields.items(): ctx[name] = field.get_eval(self, check_load=check_load)