From 173550dcde10d30db92f1937209da19c51406876 Mon Sep 17 00:00:00 2001
From: Yannick Tivisse <yti@odoo.com>
Date: Wed, 10 Aug 2016 10:40:13 +0200
Subject: [PATCH] [FIX] mrp: Call _compute_quantity with its new signature

---
 addons/mrp/report/bom_cost.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/addons/mrp/report/bom_cost.py b/addons/mrp/report/bom_cost.py
index 86da9575798c..f299ed4ba1b2 100644
--- a/addons/mrp/report/bom_cost.py
+++ b/addons/mrp/report/bom_cost.py
@@ -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'],
-- 
GitLab