Skip to content

Commit

Permalink
fix(ux): added exception of template item in filters (frappe#27560)
Browse files Browse the repository at this point in the history
  • Loading branch information
noahjacob committed Sep 27, 2021
1 parent cc5dd5c commit 5c249de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion erpnext/manufacturing/doctype/bom/bom.py
Original file line number Diff line number Diff line change
Expand Up @@ -1133,7 +1133,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,
Expand Down

0 comments on commit 5c249de

Please sign in to comment.