fix: edit stock uom qty for purchase documents (#55135)

This commit is contained in:
Nishka Gosalia
2026-05-22 14:23:24 +05:30
committed by GitHub
parent 9eeccecd30
commit ace4e45cfe

View File

@@ -320,9 +320,8 @@ def clean_all_descriptions():
@frappe.whitelist()
def get_enable_stock_uom_editing():
return frappe.get_cached_value(
return frappe.get_single_value(
"Stock Settings",
None,
["allow_to_edit_stock_uom_qty_for_sales", "allow_to_edit_stock_uom_qty_for_purchase"],
as_dict=1,
)