fix: disbaled UOM showing in the list

(cherry picked from commit 3745825052)
This commit is contained in:
Rohit Waghchaure
2025-04-21 21:24:58 +05:30
committed by Mergify
parent af35e43555
commit 3d4f3e1be7

View File

@@ -921,7 +921,7 @@ def get_item_uom_query(doctype, txt, searchfield, start, page_len, filters):
return frappe.get_all(
"UOM",
filters={"name": ["like", f"%{txt}%"]},
filters={"name": ["like", f"%{txt}%"], "enabled": 1},
fields=["name"],
limit_start=start,
limit_page_length=page_len,