summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authordavid.beal@akretion.com <david.beal@akretion.com>2015-04-17 22:05:55 +0200
committerXavier Morel <xmo@odoo.com>2015-04-20 09:39:40 +0200
commitea4f9c4625ec8eebcf337bbd8a8b44d68c377ad7 (patch)
tree718082e3d0a3dd2bde347ed2f642709759d87260 /addons
parentfc132665d77ec630b45b0aec808b32b6797a57dc (diff)
[FIX] call fields_view_get with named context
otherwise new API bridging breaks down closes #6371
Diffstat (limited to 'addons')
-rw-r--r--addons/stock/product.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/stock/product.py b/addons/stock/product.py
index 9d5f71d733b..f0863e7ef96 100644
--- a/addons/stock/product.py
+++ b/addons/stock/product.py
@@ -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']: