diff --git a/addons/mrp/report/mrp_report_bom_structure.py b/addons/mrp/report/mrp_report_bom_structure.py index 515fc1cc76b..a726e342751 100644 --- a/addons/mrp/report/mrp_report_bom_structure.py +++ b/addons/mrp/report/mrp_report_bom_structure.py @@ -96,7 +96,7 @@ class ReportBomStructure(models.AbstractModel): bom_quantity = line_qty if line_id: current_line = self.env['mrp.bom.line'].browse(int(line_id)) - bom_quantity = current_line.product_uom_id._compute_quantity(line_qty, bom.product_uom_id) + bom_quantity = current_line.product_uom_id._compute_quantity(line_qty, bom.product_uom_id) or 0 # Display bom components for current selected product variant if product_id: product = self.env['product.product'].browse(int(product_id))