PRODUCT_EXTENDED: don't use seller price for bom price
bzr revid: ced-368efe8be1d2151f240cd3ad2e0e4f5c9a108063
This commit is contained in:
parent
58dd97c702
commit
4f2a06d415
|
@ -123,9 +123,6 @@ class product_product(osv.osv):
|
|||
if no_child_bom:
|
||||
other_bom = bom_obj.browse(cr, uid, no_child_bom)[0]
|
||||
price += bom.product_qty * self._calc_price(cr, uid, other_bom)
|
||||
elif bom.product_id.seller_ids:
|
||||
pricelist_id = bom.product_id.seller_ids[0].name.property_product_pricelist_purchase[0]
|
||||
price += pooler.get_pool(cr.dbname).get('product.pricelist').price_get(cr, uid, [pricelist_id], bom.product_id.id, bom.product_qty, 'standard')[pricelist_id]
|
||||
else:
|
||||
price += bom.product_qty * bom.product_id.standard_price
|
||||
|
||||
|
|
Loading…
Reference in New Issue