Update employee.py
This commit is contained in:
parent
f87ec61043
commit
730cb3b547
@ -168,7 +168,7 @@ class Employee(NestedSet):
|
||||
|
||||
def validate_onboarding_process(self):
|
||||
employee_onboarding = frappe.get_all("Employee Onboarding",
|
||||
filters={"job_applicant": self.job_applicant, "docstatus": 1, "status": ("!=", "Completed")})
|
||||
filters={"job_applicant": self.job_applicant, "docstatus": 1, "boarding_status": ("!=", "Completed")})
|
||||
if employee_onboarding:
|
||||
doc = frappe.get_doc("Employee Onboarding", employee_onboarding[0].name)
|
||||
doc.validate_employee_creation()
|
||||
@ -341,4 +341,4 @@ def get_children(doctype, parent=None, company=None, is_root=False, is_tree=Fals
|
||||
|
||||
|
||||
def on_doctype_update():
|
||||
frappe.db.add_index("Employee", ["lft", "rgt"])
|
||||
frappe.db.add_index("Employee", ["lft", "rgt"])
|
||||
|
Loading…
Reference in New Issue
Block a user