Skip to content

Commit

Permalink
fix: show only active employees (#1026) (#1068)
Browse files Browse the repository at this point in the history
To show only active employees in Organizational chart

Solve below issues
frappe/erpnext#37775
#982
#1010

(cherry picked from commit cb1453e)

Co-authored-by: MohsinAli <[email protected]>
  • Loading branch information
mergify[bot] and mohsinalimat authored Nov 16, 2023
1 parent f738028 commit bb93127
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hrms/hr/page/organizational_chart/organizational_chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

@frappe.whitelist()
def get_children(parent=None, company=None, exclude_node=None):
filters = [["status", "!=", "Left"]]
filters = [["status", "=", "Active"]]
if company and company != "All Companies":
filters.append(["company", "=", company])

Expand Down

0 comments on commit bb93127

Please sign in to comment.