Skip to content

Commit

Permalink
fix: conditionally apply is_group filter in accounting dimension qu…
Browse files Browse the repository at this point in the history
…ery (#40414)
  • Loading branch information
ruchamahabal authored Mar 12, 2024
1 parent f8a1a7f commit daf4ae2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/controllers/queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"):
Expand Down

0 comments on commit daf4ae2

Please sign in to comment.