PRODUCT_EXTENDED: don't use seller price for bom price

bzr revid: ced-368efe8be1d2151f240cd3ad2e0e4f5c9a108063
This commit is contained in:
ced 2007-02-20 14:33:28 +00:00
parent 58dd97c702
commit 4f2a06d415
1 changed files with 0 additions and 3 deletions

View File

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