[FIX] product: correct forwardport
Introduced at f772303
during forward port
This commit is contained in:
parent
f36aba31e5
commit
4203360528
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue