refactor: parse native JSON request args in buying/doctype/supplier_quotation/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:31 +05:30
parent 91c92b5e20
commit c6d34a18a5

View File

@@ -15,8 +15,7 @@ def make_purchase_order(
):
if args is None:
args = {}
if isinstance(args, str):
args = json.loads(args)
args = frappe.parse_json(args)
def set_missing_values(source, target):
target.run_method("set_missing_values")