diff --git a/addons/hr_evaluation/hr_evaluation.py b/addons/hr_evaluation/hr_evaluation.py index 068af5be0ee..5f6948d52e6 100644 --- a/addons/hr_evaluation/hr_evaluation.py +++ b/addons/hr_evaluation/hr_evaluation.py @@ -326,7 +326,8 @@ class hr_evaluation_interview(osv.Model): def survey_req_waiting_answer(self, cr, uid, ids, context=None): request_obj = self.pool.get('survey.user_input') for interview in self.browse(cr, uid, ids, context=context): - request_obj.action_survey_resent(cr, uid, [interview.id], context=context) + if interview.request_id: + request_obj.action_survey_resent(cr, uid, [interview.request_id.id], context=context) self.write(cr, uid, interview.id, {'state': 'waiting_answer'}, context=context) return True