From e2f713c820e6b82d3d82e751f248c6d34d8d59ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 22 Mar 2008 23:27:43 +0100 Subject: [PATCH] Initialize context to rpc context on fields eval --- 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 8d571ce247..e8d7d13aed 100644 --- a/tryton/gui/window/view_form/model/record.py +++ b/tryton/gui/window/view_form/model/record.py @@ -257,7 +257,7 @@ class ModelRecord(SignalEvent): return dom if check_load: self._check_load() - ctx = {} + ctx = rpc.CONTEXT.copy() for name, mfield in self.mgroup.mfields.items(): ctx[name] = mfield.get(self, check_load=check_load)