From 1acdadea00200d6e854142b53072454036bbeeda Mon Sep 17 00:00:00 2001 From: Frappe PR Bot Date: Mon, 27 Sep 2021 23:01:14 +0530 Subject: [PATCH] fix(ux): added exception of template item in filters (#27560) (#27675) (cherry picked from commit 5c249decbb79c5b9436aa7a0f5ca6670993e143e) Co-authored-by: Noah Jacob --- erpnext/manufacturing/doctype/bom/bom.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/erpnext/manufacturing/doctype/bom/bom.py b/erpnext/manufacturing/doctype/bom/bom.py index 3ea756eec97..651e6461494 100644 --- a/erpnext/manufacturing/doctype/bom/bom.py +++ b/erpnext/manufacturing/doctype/bom/bom.py @@ -1135,7 +1135,8 @@ def item_query(doctype, txt, searchfield, start, page_len, filters): query_filters["has_variants"] = 0 if filters and filters.get("is_stock_item"): - query_filters["is_stock_item"] = 1 + or_cond_filters["is_stock_item"] = 1 + or_cond_filters["has_variants"] = 1 return frappe.get_list("Item", fields = fields, filters=query_filters,