Add missing context to default_get call for issue1819
This commit is contained in:
1 parent
951e5fa657
commit
9d6a449d89
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