mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-09 16:21:19 +00:00
chore: remove files related to LMS
This commit is contained in:
@@ -11,10 +11,9 @@ from frappe.utils import add_days, flt, get_datetime, get_time, get_url, nowtime
|
||||
|
||||
from erpnext.controllers.employee_boarding_controller import update_employee_boarding_status
|
||||
from erpnext.controllers.queries import get_filters_cond
|
||||
from erpnext.education.doctype.student_attendance.student_attendance import get_holiday_list
|
||||
from erpnext.hr.doctype.daily_work_summary.daily_work_summary import get_users_email
|
||||
from erpnext.hr.doctype.holiday_list.holiday_list import is_holiday
|
||||
|
||||
from erpnext import get_default_company
|
||||
|
||||
class Project(Document):
|
||||
def get_feed(self):
|
||||
@@ -665,3 +664,16 @@ def set_project_status(project, status):
|
||||
|
||||
project.status = status
|
||||
project.save()
|
||||
|
||||
def get_holiday_list(company=None):
|
||||
if not company:
|
||||
company = get_default_company() or frappe.get_all("Company")[0].name
|
||||
|
||||
holiday_list = frappe.get_cached_value("Company", company, "default_holiday_list")
|
||||
if not holiday_list:
|
||||
frappe.throw(
|
||||
_("Please set a default Holiday List for Company {0}").format(
|
||||
frappe.bold(get_default_company())
|
||||
)
|
||||
)
|
||||
return holiday_list
|
||||
Reference in New Issue
Block a user