fix: change get_all to get_list in employee leave balance summary report to hide descendants when hide descendants is selected in user permissions (#25599)
Co-authored-by: nikhilponnuru <nikhil.kp@zerodha.com> Co-authored-by: Rucha Mahabal <ruchamahabal2@gmail.com>
This commit is contained in:
parent
7481f54e0c
commit
ef9f126cb2
@ -47,7 +47,7 @@ def get_data(filters, leave_types):
|
||||
user = frappe.session.user
|
||||
conditions = get_conditions(filters)
|
||||
|
||||
active_employees = frappe.get_all("Employee",
|
||||
active_employees = frappe.get_list("Employee",
|
||||
filters=conditions,
|
||||
fields=["name", "employee_name", "department", "user_id", "leave_approver"])
|
||||
|
||||
@ -72,4 +72,4 @@ def get_data(filters, leave_types):
|
||||
|
||||
data.append(row)
|
||||
|
||||
return data
|
||||
return data
|
||||
|
Loading…
x
Reference in New Issue
Block a user