mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-13 02:01:21 +00:00
fix(HR): Permission error while adding weekly holidays (#25450)
This commit is contained in:
committed by
Nabin Hait
parent
7b3dd3585b
commit
a86a51f020
@@ -16,6 +16,7 @@ class HolidayList(Document):
|
|||||||
self.validate_days()
|
self.validate_days()
|
||||||
self.total_holidays = len(self.holidays)
|
self.total_holidays = len(self.holidays)
|
||||||
|
|
||||||
|
@frappe.whitelist()
|
||||||
def get_weekly_off_dates(self):
|
def get_weekly_off_dates(self):
|
||||||
self.validate_values()
|
self.validate_values()
|
||||||
date_list = self.get_weekly_off_date_list(self.from_date, self.to_date)
|
date_list = self.get_weekly_off_date_list(self.from_date, self.to_date)
|
||||||
|
|||||||
Reference in New Issue
Block a user