From 3923f4051dcfcf91ae3a89b9330bd2899c312f47 Mon Sep 17 00:00:00 2001 From: Thomas Groutars Date: Thu, 12 Mar 2015 12:01:34 +0100 Subject: [PATCH] [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 --- openerp/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/openerp/models.py b/openerp/models.py index 2e13eca08a0..9a712602d66 100644 --- a/openerp/models.py +++ b/openerp/models.py @@ -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):