mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-15 09:53:09 +00:00
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:
committed by
Mihir Kandoi
parent
87e7e53a6a
commit
b625525b03
@@ -132,7 +132,7 @@ class MaterialRequestService:
|
|||||||
|
|
||||||
@frappe.whitelist()
|
@frappe.whitelist()
|
||||||
def get_items_for_material_requests(
|
def get_items_for_material_requests(
|
||||||
doc: str | frappe._dict | Document,
|
doc: str | dict | Document,
|
||||||
warehouses: str | list | None = None,
|
warehouses: str | list | None = None,
|
||||||
get_parent_warehouse_data: bool | int | None = None,
|
get_parent_warehouse_data: bool | int | None = None,
|
||||||
):
|
):
|
||||||
|
|||||||
Reference in New Issue
Block a user