fix(ux): added exception of template item in filters (#27560)

This commit is contained in:
Noah Jacob 2021-09-27 22:34:27 +05:30 committed by GitHub
parent cc5dd5c67d
commit 5c249decbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,