Merge pull request #47186 from rohitwaghchaure/fixed-github-47112

fix: disabled UOM showing in the list
This commit is contained in:
rohitwaghchaure
2025-04-21 22:12:26 +05:30
committed by GitHub

View File

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