Hello,
I am not able to delete Interview Feedback for a user, (it is not linked with anything else)
App Versions
{
"erpnext": "14.63.3",
"frappe": "14.66.2",
"hrms": "14.22.0"
}
Route
Form/Interview Feedback/HR-INT-FEED-0001
Traceback
Traceback (most recent call last):
File "apps/frappe/frappe/app.py", line 95, 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 47, in handle
data = execute_cmd(cmd)
File "apps/frappe/frappe/handler.py", line 85, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File "apps/frappe/frappe/__init__.py", line 1603, in call
return fn(*args, **newargs)
File "apps/frappe/frappe/desk/form/save.py", line 50, in cancel
doc.cancel()
File "apps/frappe/frappe/model/document.py", line 1007, in cancel
return self._cancel()
File "apps/frappe/frappe/model/document.py", line 989, in _cancel
return self.save()
File "apps/frappe/frappe/model/document.py", line 305, in save
return self._save(*args, **kwargs)
File "apps/frappe/frappe/model/document.py", line 357, in _save
self.run_post_save_methods()
File "apps/frappe/frappe/model/document.py", line 1087, in run_post_save_methods
self.run_method("on_cancel")
File "apps/frappe/frappe/model/document.py", line 915, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File "apps/frappe/frappe/model/document.py", line 1267, in composer
return composed(self, method, *args, **kwargs)
File "apps/frappe/frappe/model/document.py", line 1249, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File "apps/frappe/frappe/model/document.py", line 912, in fn
return method_object(*args, **kwargs)
File "apps/hrms/hrms/hr/doctype/interview_feedback/interview_feedback.py", line 22, in on_cancel
self.update_interview_details()
File "apps/hrms/hrms/hr/doctype/interview_feedback/interview_feedback.py", line 73, in update_interview_details
if entry.interview_feedback == self.name:
AttributeError: 'InterviewDetail' object has no attribute 'interview_feedback'
Request Data
{
"type": "POST",
"args": {
"doctype": "Interview Feedback",
"name": "HR-INT-FEED-0001"
},
"btn": {
"jQuery360045677641190116861": {
"events": {
"click": [
{
"type": "click",
"origType": "click",
"guid": 2524,
"namespace": ""
}
]
}
}
},
"freeze": true,
"headers": {},
"error_handlers": {},
"url": "/api/method/frappe.desk.form.save.cancel"
}
Response Data
{
"exception": "AttributeError: 'InterviewDetail' object has no attribute 'interview_feedback'"
}