fix(HR): Permission error while adding weekly holidays (#25450)

This commit is contained in:
Rucha Mahabal 2021-04-23 20:03:50 +05:30 committed by Nabin Hait
parent 7b3dd3585b
commit a86a51f020

View File

@ -16,6 +16,7 @@ class HolidayList(Document):
self.validate_days()
self.total_holidays = len(self.holidays)
@frappe.whitelist()
def get_weekly_off_dates(self):
self.validate_values()
date_list = self.get_weekly_off_date_list(self.from_date, self.to_date)