From ec4872e70a18f66539799dab2c059ac754855e54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 7 Mar 2012 16:17:19 +0100 Subject: [PATCH] Use field.context_get instead of evaluating the context attribute --- tryton/gui/window/view_form/view/form_gtk/one2many.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tryton/gui/window/view_form/view/form_gtk/one2many.py b/tryton/gui/window/view_form/view/form_gtk/one2many.py index afdffc319d..2e7aaad018 100644 --- a/tryton/gui/window/view_form/view/form_gtk/one2many.py +++ b/tryton/gui/window/view_form/view/form_gtk/one2many.py @@ -237,7 +237,7 @@ class One2Many(WidgetInterface): self.screen.display() return ctx = {} - ctx.update(self.record.expr_eval(self.attrs.get('context', {}))) + ctx.update(self.field.context_get(self.record)) sequence = None if self.screen.current_view.view_type == 'tree': sequence = self.screen.current_view.widget_tree.sequence