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:
Nikhil Ponnuru 2021-05-07 10:06:29 +05:30 committed by GitHub
parent 7481f54e0c
commit ef9f126cb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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