diff --git a/addons/mrp_bom_cost/models/product.py b/addons/mrp_bom_cost/models/product.py index 9af9b84d9d6..fc0f56be631 100644 --- a/addons/mrp_bom_cost/models/product.py +++ b/addons/mrp_bom_cost/models/product.py @@ -50,6 +50,8 @@ class ProductProduct(models.Model): def _compute_bom_price(self, bom, boms_to_recompute=False): self.ensure_one() + if not bom: + return 0 if not boms_to_recompute: boms_to_recompute = [] total = 0