Add missing context to default_get call for issue1819
(transplanted from 3814ab387ce8799bebb881578879d331907a2b82)
This commit is contained in:
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:
|
||||
|
||||
Reference in new issue
Block a user