fix: fetch item on the base of item group
diff --git a/erpnext/controllers/queries.py b/erpnext/controllers/queries.py
index 2284669..0ff329b 100644
--- a/erpnext/controllers/queries.py
+++ b/erpnext/controllers/queries.py
@@ -152,6 +152,9 @@
def item_query(doctype, txt, searchfield, start, page_len, filters, as_dict=False):
conditions = []
+ if not filters["item_group"]:
+ filters.pop("item_group", None)
+
description_cond = ''
if frappe.db.count('Item', cache=True) < 50000:
# scan description only if items are less than 50000