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 (backport #40414) (#40416)

fix: conditionally apply `is_group` filter in accounting dimension query (#40414)

(cherry picked from commit daf4ae2)

Co-authored-by: Rucha Mahabal <ruchamahabal2@gmail.com>
  • Loading branch information
mergify[bot] and ruchamahabal authored Mar 12, 2024
1 parent 0ad203a commit 40752c1
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 @@ -665,7 +665,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 40752c1

Please sign in to comment.