diff --git a/erpnext/manufacturing/doctype/production_plan/production_plan.py b/erpnext/manufacturing/doctype/production_plan/production_plan.py index 10a22184ee6973a861767f5bb622dd8acee0ac60..e0c47985590d6527260bfcf9e7483f47e0bfddc0 100644 --- a/erpnext/manufacturing/doctype/production_plan/production_plan.py +++ b/erpnext/manufacturing/doctype/production_plan/production_plan.py @@ -1255,6 +1255,7 @@ def get_exploded_items(item_details, company, bom_no, include_non_stock_items, p item.purchase_uom, item_uom.conversion_factor, item.safety_stock, + bom.item.as_("main_bom_item"), ) .where( (bei.docstatus < 2) @@ -2003,6 +2004,7 @@ def get_raw_materials_of_sub_assembly_items( item.purchase_uom, item_uom.conversion_factor, item.safety_stock, + bom.item.as_("main_bom_item"), ) .where( (bei.docstatus == 1)