diff --git a/erpnext/buying/doctype/purchase_order/purchase_order.py b/erpnext/buying/doctype/purchase_order/purchase_order.py index 13defdecd1f..b2e4ef49fb2 100644 --- a/erpnext/buying/doctype/purchase_order/purchase_order.py +++ b/erpnext/buying/doctype/purchase_order/purchase_order.py @@ -770,7 +770,7 @@ def make_purchase_receipt( @frappe.whitelist() def make_purchase_invoice( - source_name: str, target_doc: str | Document | None = None, args: str | None = None + source_name: str, target_doc: str | Document | None = None, args: str | dict | None = None ): return get_mapped_purchase_invoice(source_name, target_doc, args=args) @@ -904,7 +904,11 @@ def make_inter_company_sales_order(source_name: str, target_doc: str | Document @frappe.whitelist() def make_subcontracting_order( - source_name: str, target_doc=None, save=False, submit: bool = False, notify: bool = False + source_name: str, + target_doc: str | Document | None = None, + save: bool = False, + submit: bool = False, + notify: bool = False, ): if not is_po_fully_subcontracted(source_name): target_doc = get_mapped_subcontracting_order(source_name, target_doc) diff --git a/erpnext/buying/doctype/request_for_quotation/request_for_quotation.py b/erpnext/buying/doctype/request_for_quotation/request_for_quotation.py index 75a5275573d..f2dbcdab122 100644 --- a/erpnext/buying/doctype/request_for_quotation/request_for_quotation.py +++ b/erpnext/buying/doctype/request_for_quotation/request_for_quotation.py @@ -461,7 +461,7 @@ def make_supplier_quotation_from_rfq( # This method is used to make supplier quotation from supplier's portal. @frappe.whitelist() -def create_supplier_quotation(doc: str | dict): +def create_supplier_quotation(doc: str | Document | dict): if isinstance(doc, str): doc = json.loads(doc)