fix: remove active employee validation from timesheets
- moved to hrms hooks, will only be triggered if app is installed
diff --git a/erpnext/projects/doctype/timesheet/timesheet.py b/erpnext/projects/doctype/timesheet/timesheet.py
index 2ef966b..411675e 100644
--- a/erpnext/projects/doctype/timesheet/timesheet.py
+++ b/erpnext/projects/doctype/timesheet/timesheet.py
@@ -10,7 +10,6 @@
from frappe.utils import add_to_date, flt, get_datetime, getdate, time_diff_in_hours
from erpnext.controllers.queries import get_match_cond
-from erpnext.hr.utils import validate_active_employee
from erpnext.setup.utils import get_exchange_rate
@@ -24,8 +23,6 @@
class Timesheet(Document):
def validate(self):
- if self.employee:
- validate_active_employee(self.employee)
self.set_employee_name()
self.set_status()
self.validate_dates()