Update leave_application.py (#13575)

Make get_holidays function white listed
This commit is contained in:
Ahmed Madi 2018-04-12 11:01:50 +03:00 committed by Nabin Hait
parent f92fcdbac4
commit 02fd6f56d6

View File

@ -384,7 +384,7 @@ def get_leave_allocation_records(date, employee=None):
return allocated_leaves
@frappe.whitelist()
def get_holidays(employee, from_date, to_date):
'''get holidays between two dates for the given employee'''
holiday_list = get_holiday_list_for_employee(employee)