[FIX] call fields_view_get with named context
otherwise new API bridging breaks down closes #6371
This commit is contained in:
parent
fc132665d7
commit
ea4f9c4625
|
@ -279,7 +279,9 @@ class product_product(osv.osv):
|
||||||
}
|
}
|
||||||
|
|
||||||
def fields_view_get(self, cr, uid, view_id=None, view_type='form', context=None, toolbar=False, submenu=False):
|
def fields_view_get(self, cr, uid, view_id=None, view_type='form', context=None, toolbar=False, submenu=False):
|
||||||
res = super(product_product,self).fields_view_get(cr, uid, view_id, view_type, context, toolbar=toolbar, submenu=submenu)
|
res = super(product_product, self).fields_view_get(
|
||||||
|
cr, uid, view_id=view_id, view_type=view_type, context=context,
|
||||||
|
toolbar=toolbar, submenu=submenu)
|
||||||
if context is None:
|
if context is None:
|
||||||
context = {}
|
context = {}
|
||||||
if ('location' in context) and context['location']:
|
if ('location' in context) and context['location']:
|
||||||
|
|
Loading…
Reference in New Issue