mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 16:34:46 +00:00
Update leave_application.py (#13575)
Make get_holidays function white listed
This commit is contained in:
@@ -384,7 +384,7 @@ def get_leave_allocation_records(date, employee=None):
|
|||||||
|
|
||||||
return allocated_leaves
|
return allocated_leaves
|
||||||
|
|
||||||
|
@frappe.whitelist()
|
||||||
def get_holidays(employee, from_date, to_date):
|
def get_holidays(employee, from_date, to_date):
|
||||||
'''get holidays between two dates for the given employee'''
|
'''get holidays between two dates for the given employee'''
|
||||||
holiday_list = get_holiday_list_for_employee(employee)
|
holiday_list = get_holiday_list_for_employee(employee)
|
||||||
|
|||||||
Reference in New Issue
Block a user