Here
App Versions
{
"erpnext": "14.74.3",
"frappe": "14.82.0",
"hrms": "14.33.0",
"india_compliance": "14.30.5",
"posawesome": "6.3.0"
}
Route
Form/Employee/new-employee-wsyxehwkur
Traceback
Traceback (most recent call last):
File "apps/frappe/frappe/app.py", line 97, in application
response = frappe.api.handle()
File "apps/frappe/frappe/api.py", line 55, in handle
return frappe.handler.handle()
File "apps/frappe/frappe/handler.py", line 48, in handle
data = execute_cmd(cmd)
File "apps/frappe/frappe/handler.py", line 86, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File "apps/frappe/frappe/__init__.py", line 1619, in call
return fn(*args, **newargs)
File "apps/frappe/frappe/desk/form/save.py", line 31, in savedocs
doc.save()
File "apps/frappe/frappe/model/document.py", line 310, in save
return self._save(*args, **kwargs)
File "apps/frappe/frappe/model/document.py", line 332, in _save
return self.insert()
File "apps/frappe/frappe/model/document.py", line 265, in insert
self.run_before_save_methods()
File "apps/frappe/frappe/model/document.py", line 1061, in run_before_save_methods
self.run_method("validate")
File "apps/frappe/frappe/model/document.py", line 931, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File "apps/frappe/frappe/model/document.py", line 1283, in composer
return composed(self, method, *args, **kwargs)
File "apps/frappe/frappe/model/document.py", line 1267, in runner
add_to_return_value(self, f(self, method, *args, **kwargs))
File "apps/hrms/hrms/overrides/employee_master.py", line 31, in validate_onboarding_process
if not doc.job_applicant:
AttributeError: 'EmployeeMaster' object has no attribute 'job_applicant'
Request Data
{
"type": "POST",
"args": {
"doc": "{\"docstatus\":0,\"doctype\":\"Employee\",\"name\":\"new-employee-wsyxehwkur\",\"__islocal\":1,\"__unsaved\":1,\"owner\":\"Administrator\",\"naming_series\":\"HR-EMP-\",\"status\":\"Active\",\"create_user_permission\":1,\"company\":\"RV Solution\",\"prefered_contact_email\":\"\",\"unsubscribed\":0,\"current_accommodation_type\":\"\",\"permanent_accommodation_type\":\"\",\"salary_currency\":\"INR\",\"salary_mode\":\"\",\"marital_status\":\"\",\"blood_group\":\"\",\"leave_encashed\":\"\",\"first_name\":\"sss\",\"date_of_birth\":\"2004-02-19\",\"date_of_retirement\":\"2064-02-19\",\"gender\":\"Female\",\"date_of_joining\":\"2023-05-17\",\"custom_job_applicant\":\"sadashiv@myrvsolution.com\"}",
"action": "Save"
},
"btn": {
"jQuery3600103128124402098731": {
"events": {
"click": [
{
"type": "click",
"origType": "click",
"guid": 8720,
"namespace": ""
}
]
}
}
},
"freeze": true,
"headers": {},
"error_handlers": {},
"url": "/api/method/frappe.desk.form.save.savedocs"
}
Response Data
{
"exception": "AttributeError: 'EmployeeMaster' object has no attribute 'job_applicant'"
}