[FIX] call fields_view_get with named context

otherwise new API bridging breaks down

closes #6371
This commit is contained in:
david.beal@akretion.com 2015-04-17 22:05:55 +02:00 committed by Xavier Morel
parent fc132665d7
commit ea4f9c4625
1 changed files with 3 additions and 1 deletions

View File

@ -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):
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:
context = {}
if ('location' in context) and context['location']: