diff --git a/erpnext/manufacturing/doctype/work_order/services/reservation.py b/erpnext/manufacturing/doctype/work_order/services/reservation.py index f22470cf2d4..59419bbd579 100644 --- a/erpnext/manufacturing/doctype/work_order/services/reservation.py +++ b/erpnext/manufacturing/doctype/work_order/services/reservation.py @@ -546,10 +546,10 @@ class WorkOrderStockReservation: @frappe.whitelist() def make_stock_reservation_entries( - doc: str | Document, items: str | list | None = None, is_transfer: bool = True, notify: bool = False + doc: str | dict, items: str | list | None = None, is_transfer: bool = True, notify: bool = False ): """Whitelisted entry point: verify Work Order write access, then reserve stock.""" - if isinstance(doc, str): + if isinstance(doc, str | dict): doc = parse_json(doc) doc = frappe.get_doc("Work Order", doc.get("name"))