chore: remove files related to LMS

This commit is contained in:
Deepesh Garg
2022-04-28 10:41:30 +05:30
parent 69d369dd7f
commit 41e2959389
21 changed files with 14 additions and 1295 deletions

View File

@@ -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