Add missing context to default_get call for issue1819

(transplanted from 3814ab387ce8799bebb881578879d331907a2b82)
This commit is contained in:
Cédric Krier committed 2011-01-13 11:33:58 +01:00
1 parent 811c2e7417
commit 814d32ac28
1 file changed
+2 -1
@@ -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: