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 GitHub
parent 1b1c1bcbd0
commit 184317d5bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)