refactor: parse native JSON request args in stock/doctype/warehouse/warehouse.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:35 +05:30
parent 5aeb711f69
commit a6ede74b2d

View File

@@ -176,8 +176,7 @@ def get_children(
if is_root:
parent = ""
if isinstance(include_disabled, str):
include_disabled = json.loads(include_disabled)
include_disabled = frappe.parse_json(include_disabled)
fields = ["name as value", "is_group as expandable"]