refactor: parse native JSON request args in stock/doctype/delivery_note/mapper.py

Use frappe.parse_json instead of json.loads so the whitelisted endpoints
accept native JSON types (list/dict/bool) in addition to JSON strings.
This commit is contained in:
Mihir Kandoi
2026-06-24 20:37:34 +05:30
parent 04a93cabf1
commit 5a77df6560

View File

@@ -66,8 +66,7 @@ def make_sales_invoice(
if args is None:
args = {}
if isinstance(args, str):
args = json.loads(args)
args = frappe.parse_json(args)
doc = frappe.get_doc("Delivery Note", source_name)