[FIX] models: propagate context in action returned by get_formview_action
When opening a record from a many2one, the context is not propagated to fields_view_get. This is a problem if you set "form_view_ref" in the context for example. opw-629628
This commit is contained in:
parent
890174b976
commit
3923f4051d
|
@ -1606,6 +1606,7 @@ class BaseModel(object):
|
||||||
'views': [(view_id, 'form')],
|
'views': [(view_id, 'form')],
|
||||||
'target': 'current',
|
'target': 'current',
|
||||||
'res_id': id,
|
'res_id': id,
|
||||||
|
'context': context,
|
||||||
}
|
}
|
||||||
|
|
||||||
def get_access_action(self, cr, uid, id, context=None):
|
def get_access_action(self, cr, uid, id, context=None):
|
||||||
|
|
Loading…
Reference in New Issue