From 56749cf098a214c0a17e525e9f3eab7fa1b1998c Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Mon, 12 Mar 2018 13:55:03 +0100 Subject: [PATCH] [FIX] product_extended: compute price Remove the limitation introduced in 6feefe4d102ff5, since the `standard_price` field is now available on `product.product`. opw-1814973 --- addons/product_extended/models/product.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/addons/product_extended/models/product.py b/addons/product_extended/models/product.py index 0efd659dd79..19ef8e08492 100644 --- a/addons/product_extended/models/product.py +++ b/addons/product_extended/models/product.py @@ -37,9 +37,7 @@ class ProductProduct(models.Model): price = 0.0 result, result2 = bom.explode(self, 1) for sbom, sbom_data in result2: - if not sbom.attribute_value_ids: - # No attribute_value_ids means the bom line is not variant specific - price += sbom.product_id.uom_id._compute_price(sbom.product_id.standard_price, sbom.product_uom_id) * sbom_data['qty'] + price += sbom.product_id.uom_id._compute_price(sbom.product_id.standard_price, sbom.product_uom_id) * sbom_data['qty'] if bom.routing_id: # FIXME master: remove me if hasattr(self.env['mrp.workcenter'], 'costs_hour'):