fix: conditionally apply is_group filter in accounting dimension query (#40414)
This commit is contained in:
@@ -670,7 +670,7 @@ def get_filtered_dimensions(
|
||||
searchfields = frappe.get_meta(doctype).get_search_fields()
|
||||
|
||||
meta = frappe.get_meta(doctype)
|
||||
if meta.is_tree:
|
||||
if meta.is_tree and meta.has_field("is_group"):
|
||||
query_filters.append(["is_group", "=", 0])
|
||||
|
||||
if meta.has_field("disabled"):
|
||||
|
||||
Reference in New Issue
Block a user