From c3077ee067c09b14462a4b599b7de6ad9ed64e59 Mon Sep 17 00:00:00 2001 From: Fritz Date: Tue, 30 Apr 2024 14:27:58 +0200 Subject: [PATCH] fix: compute tree-view parent field name (#41234) fix: Fixing treeView lookup incompatibility, see : See https://github.com/frappe/frappe/pull/26199 --- erpnext/accounts/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/utils.py b/erpnext/accounts/utils.py index 04ea2cb8530..b3bfabe4187 100644 --- a/erpnext/accounts/utils.py +++ b/erpnext/accounts/utils.py @@ -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]]