From 9d6a449d89fce8790252759b766f48bc53607ce7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 13 Jan 2011 11:33:58 +0100 Subject: [PATCH] Add missing context to default_get call for issue1819 --- tryton/gui/window/view_form/view/form_gtk/interface.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tryton/gui/window/view_form/view/form_gtk/interface.py b/tryton/gui/window/view_form/view/form_gtk/interface.py index adb54fbaa0..08d6db1f1b 100644 --- a/tryton/gui/window/view_form/view/form_gtk/interface.py +++ b/tryton/gui/window/view_form/view/form_gtk/interface.py @@ -108,7 +108,8 @@ class WidgetInterface(object): if self.field.get_state_attrs(self.record).get('readonly', False): return False model_name = self.field.parent.model_name - args = ('model', model_name, 'default_get', [self.attrs['name']]) + args = ('model', model_name, 'default_get', [self.attrs['name']], + rpc.CONTEXT) try: res = rpc.execute(*args) except Exception, exception: