mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-20 21:49:18 +00:00
optimize(various)
This commit is contained in:
@@ -105,7 +105,7 @@ class MaintenanceSchedule(TransactionBase):
|
||||
if employee:
|
||||
holiday_list = get_holiday_list_for_employee(employee)
|
||||
else:
|
||||
holiday_list = frappe.db.get_value("Company", self.company, "default_holiday_list")
|
||||
holiday_list = frappe.get_cached_value('Company', self.company, "default_holiday_list")
|
||||
|
||||
holidays = frappe.db.sql_list('''select holiday_date from `tabHoliday` where parent=%s''', holiday_list)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user