From 814d32ac28a6fa6b751b14796a11a7ffa29bf594 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 (transplanted from 3814ab387ce8799bebb881578879d331907a2b82) --- 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 87cde9e68c..c2b104e9c8 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: