Skip to content

Commit

Permalink
Bug fix TreeView: See frappe/frappe#26184
Browse files Browse the repository at this point in the history
  • Loading branch information
fixundfertig123 committed Apr 28, 2024
1 parent 77a764e commit 63a7db2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/accounts/utils.py
Expand Up @@ -1094,7 +1094,7 @@ def get_companies():
def get_children(doctype, parent, company, is_root=False):
from erpnext.accounts.report.financial_statements import sort_accounts

parent_fieldname = "parent_" + doctype.lower().replace(" ", "_")
parent_fieldname = "parent_" + frappe.scrub(doctype)
fields = ["name as value", "is_group as expandable"]
filters = [["docstatus", "<", 2]]

Expand Down

0 comments on commit 63a7db2

Please sign in to comment.