diff --git a/erpnext/manufacturing/doctype/work_order/work_order.py b/erpnext/manufacturing/doctype/work_order/work_order.py index a4285753f62..5bde3e9ddfa 100644 --- a/erpnext/manufacturing/doctype/work_order/work_order.py +++ b/erpnext/manufacturing/doctype/work_order/work_order.py @@ -2130,7 +2130,7 @@ def make_stock_reservation_entries( @frappe.whitelist() -def cancel_stock_reservation_entries(doc, sre_list): +def cancel_stock_reservation_entries(doc: str | dict, sre_list: str | list): if isinstance(doc, str): doc = parse_json(doc) doc = frappe.get_doc("Work Order", doc.get("name"))