fix(hr): Use event_status instead of status
Training Feedback DocType has event_status field (not status) This was broken since PR #10379, PR #17197 made this failure explicit.
This commit is contained in:
parent
13955e3a68
commit
5f1632cf1f
@ -15,11 +15,11 @@ class TrainingFeedback(Document):
|
|||||||
|
|
||||||
def on_submit(self):
|
def on_submit(self):
|
||||||
training_event = frappe.get_doc("Training Event", self.training_event)
|
training_event = frappe.get_doc("Training Event", self.training_event)
|
||||||
status = None
|
event_status = None
|
||||||
for e in training_event.employees:
|
for e in training_event.employees:
|
||||||
if e.employee == self.employee:
|
if e.employee == self.employee:
|
||||||
status = 'Feedback Submitted'
|
event_status = 'Feedback Submitted'
|
||||||
break
|
break
|
||||||
|
|
||||||
if status:
|
if event_status:
|
||||||
frappe.db.set_value("Training Event", self.training_event, "status", status)
|
frappe.db.set_value("Training Event", self.training_event, "event_status", event_status)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user