[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:
Thomas Groutars 2015-03-12 12:01:34 +01:00 committed by Denis Ledoux
parent 890174b976
commit 3923f4051d
1 changed files with 1 additions and 0 deletions

View File

@ -1606,6 +1606,7 @@ class BaseModel(object):
'views': [(view_id, 'form')],
'target': 'current',
'res_id': id,
'context': context,
}
def get_access_action(self, cr, uid, id, context=None):