fix(manufacturing): accept plain dict for doc in get_items_for_material_requests

the whitelisted endpoint typed doc as str | frappe._dict | Document, so a
json request body (a plain dict) failed pydantic type validation. widen to
str | dict | Document, matching the convention used elsewhere in erpnext.
This commit is contained in:
Sudharsanan11
2026-07-07 16:57:28 +05:30
committed by Mihir Kandoi
parent 87e7e53a6a
commit b625525b03

View File

@@ -132,7 +132,7 @@ class MaterialRequestService:
@frappe.whitelist()
def get_items_for_material_requests(
doc: str | frappe._dict | Document,
doc: str | dict | Document,
warehouses: str | list | None = None,
get_parent_warehouse_data: bool | int | None = None,
):