[FIX] product: correct forwardport

Introduced at f772303 during forward port
This commit is contained in:
Alexis de Lattre 2016-12-20 13:24:16 +01:00 committed by Martin Trigaux
parent f36aba31e5
commit 4203360528
1 changed files with 1 additions and 1 deletions

View File

@ -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: