From e6a5a47ae176992e0e40a06000bdcd70d1b1bc43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 19 Sep 2010 18:49:12 +0200 Subject: [PATCH] Fix nested _parent_ evalutation for issue1697 check_load was not passed to the parent EvalEnvironment instance (transplanted from 4bf73d057f064bdbd05fcccd96ee03424fd223a3) --- 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 0247d14eec..28778b6e6d 100644 --- a/tryton/gui/window/view_form/model/record.py +++ b/tryton/gui/window/view_form/model/record.py @@ -19,7 +19,7 @@ class EvalEnvironment(object): def __getattr__(self, item): if item == '_parent_' + self.parent.parent_name and self.parent.parent: - return EvalEnvironment(self.parent.parent) + return EvalEnvironment(self.parent.parent, self.check_load) return self.parent.get_eval(check_load=self.check_load)[item]