refactor: use json directly instead of using frappe.json (#41609)

This commit is contained in:
Akhil Narang
2024-05-23 19:30:42 +05:30
committed by GitHub
parent 954ef85b95
commit 3f06f1905f
8 changed files with 21 additions and 10 deletions

View File

@@ -2,6 +2,8 @@
# License: GNU General Public License v3. See license.txt
import json
import frappe
from frappe.utils.nestedset import NestedSet, get_root_of
@@ -71,7 +73,7 @@ def get_abbreviated_name(name, company):
@frappe.whitelist()
def get_children(doctype, parent=None, company=None, is_root=False, include_disabled=False):
if isinstance(include_disabled, str):
include_disabled = frappe.json.loads(include_disabled)
include_disabled = json.loads(include_disabled)
fields = ["name as value", "is_group as expandable"]
filters = {}