mirror of
https://github.com/frappe/erpnext.git
synced 2026-10-29 22:57:42 +00:00
fix(manufacturing): validate Item in Work Order get_item_details
This commit is contained in:
@@ -1454,6 +1454,8 @@ def get_bom_operations(doctype, txt, searchfield, start, page_len, filters):
|
||||
|
||||
@frappe.whitelist()
|
||||
def get_item_details(item, project=None, skip_bom_info=False, throw=True):
|
||||
frappe.has_permission("Item", "read", doc=item, throw=True)
|
||||
|
||||
res = frappe.db.sql(
|
||||
"""
|
||||
select stock_uom, description, item_name, allow_alternative_item,
|
||||
|
||||
Reference in New Issue
Block a user