Skip to content
Snippets Groups Projects
Commit 173550dc authored by Yannick Tivisse's avatar Yannick Tivisse
Browse files

[FIX] mrp: Call _compute_quantity with its new signature

parent a3f83916
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,7 @@ class MrpBomCost(models.AbstractModel):
total = 0.0
for bom_line, line_data in result2:
line_product = line_data['product']
price_uom = self.env['product.uom']._compute_qty(line_product.uom_id.id, line_product.standard_price, bom_line.product_uom_id.id)
price_uom = line_product.uom_id._compute_quantity(line_product.standard_price, bom_line.product_uom_id)
line = {
'product_id': line_product,
'product_uom_qty': line_data['qty'],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment