From c76e34d7de54303644a8e929439787202f2f23a6 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Mon, 28 Sep 2015 16:44:48 +0530 Subject: [PATCH] [fix] In get_bom_items_as_dict don't filter by is_pro_applicable for multi-level bom --- erpnext/manufacturing/doctype/bom/bom.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/erpnext/manufacturing/doctype/bom/bom.py b/erpnext/manufacturing/doctype/bom/bom.py index 9aab96d5c3..9a3d318c5a 100644 --- a/erpnext/manufacturing/doctype/bom/bom.py +++ b/erpnext/manufacturing/doctype/bom/bom.py @@ -391,8 +391,7 @@ def get_bom_items_as_dict(bom, company, qty=1, fetch_exploded=1): if fetch_exploded: query = query.format(table="BOM Explosion Item", - conditions="""and item.is_pro_applicable = 0 - and item.is_sub_contracted_item = 0 """) + conditions="""and item.is_sub_contracted_item = 0""") items = frappe.db.sql(query, { "qty": qty, "bom": bom }, as_dict=True) else: query = query.format(table="BOM Item", conditions="")