From 42033605286afc6d741383205259971206356751 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Tue, 20 Dec 2016 13:24:16 +0100 Subject: [PATCH] [FIX] product: correct forwardport Introduced at f772303 during forward port --- addons/product/product.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/product/product.py b/addons/product/product.py index b478297e560..69a526d62c3 100644 --- a/addons/product/product.py +++ b/addons/product/product.py @@ -628,7 +628,7 @@ class product_template(osv.osv): else: company_id = context.get('force_company') or product.env.user.company_id.id product = product.with_context(force_company=company_id) - res[product.id] = res[product.id] = product.sudo()[ptype] + res[product.id] = product.sudo()[ptype] if ptype == 'list_price': res[product.id] += product._name == "product.product" and product.price_extra or 0.0 if 'uom' in context: