diff --git a/erpnext/manufacturing/doctype/bom/bom.py b/erpnext/manufacturing/doctype/bom/bom.py index 14932d28fef..4c87dc7cd22 100644 --- a/erpnext/manufacturing/doctype/bom/bom.py +++ b/erpnext/manufacturing/doctype/bom/bom.py @@ -388,6 +388,7 @@ def get_bom_items_as_dict(bom, qty=1, fetch_exploded=1): and bom_item.docstatus < 2 and bom_item.parent = %(bom)s and item.name = bom_item.item_code + and ifnull(item.is_stock_item, 'No') = 'Yes' {conditions} group by item_code, stock_uom"""