Skip to content
Snippets Groups Projects
Commit 707db039 authored by E.R. Spada II's avatar E.R. Spada II Committed by Martin Trigaux
Browse files

[FIX] product_extended: BOM Correct total cost

When calculating the cost, quantity did not take the product efficiency into
account when calculating the cost. The quantities on the MO order were correct,
but not the cost that needs to be increased to compensent efficiency.

Closes #5927
Closes #7648
parent 00c2a998
Branches
Tags
No related merge requests found
......@@ -74,7 +74,7 @@ class product_template(osv.osv):
uom_obj = self.pool.get("product.uom")
tmpl_obj = self.pool.get('product.template')
for sbom in bom.bom_line_ids:
my_qty = sbom.product_qty
my_qty = sbom.product_qty / sbom.product_efficiency
if not sbom.attribute_value_ids:
# No attribute_value_ids means the bom line is not variant specific
price += uom_obj._compute_price(cr, uid, sbom.product_id.uom_id.id, sbom.product_id.standard_price, sbom.product_uom.id) * my_qty
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment