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)

(cherry picked from commit daf4ae2)
  • Loading branch information
ruchamahabal authored and mergify[bot] committed Mar 12, 2024
1 parent 3dd4514 commit f4ef2f8
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 @@ -608,7 +608,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 f4ef2f8

Please sign in to comment.