fix(ux): added exception of template item in filters (#27560)
This commit is contained in:
parent
cc5dd5c67d
commit
5c249decbb
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user