diff --git a/addons/hr_evaluation/hr_evaluation.py b/addons/hr_evaluation/hr_evaluation.py index b57e29ae046..3e8c61fa75f 100644 --- a/addons/hr_evaluation/hr_evaluation.py +++ b/addons/hr_evaluation/hr_evaluation.py @@ -297,7 +297,7 @@ class hr_evaluation_interview(osv.osv): _rec_name = 'response_id' _description = 'Appraisal Interview' _columns = { - 'response_id': fields.many2one('survey.response', 'Request_id', ondelete='cascade', required=True), + 'response_id': fields.many2one('survey.response', 'interview_id', ondelete='cascade', required=True), 'user_to_review_id': fields.many2one('hr.employee', 'Employee to Interview'), 'evaluation_id': fields.many2one('hr_evaluation.evaluation', 'Appraisal Form'), 'user_id': fields.many2one('res.users', 'Interviewer'), diff --git a/addons/hr_recruitment/hr_recruitment.py b/addons/hr_recruitment/hr_recruitment.py index ff1010a45d5..d16ff2d97ca 100644 --- a/addons/hr_recruitment/hr_recruitment.py +++ b/addons/hr_recruitment/hr_recruitment.py @@ -226,7 +226,7 @@ class hr_applicant(base_stage, osv.Model): 'type_id': fields.many2one('hr.recruitment.degree', 'Degree'), 'department_id': fields.many2one('hr.department', 'Department'), 'survey': fields.related('job_id', 'survey_id', type='many2one', relation='survey', string='Survey'), - 'response': fields.integer("Response"), + 'response_id': fields.many2one('survey.response', 'applicant_id'), 'reference': fields.char('Referred By', size=128), 'source_id': fields.many2one('hr.recruitment.source', 'Source'), 'day_open': fields.function(_compute_day, string='Days to Open', \ @@ -336,7 +336,7 @@ class hr_applicant(base_stage, osv.Model): context = {} record = self.browse(cr, uid, ids, context=context) record = record and record[0] - context.update({'survey_id': record.survey.id, 'response_id': [record.response], 'response_no': 0, }) + context.update({'survey_id': record.survey.id, 'response_id': [record.response_id], 'response_no': 0, }) value = self.pool.get("survey").action_print_survey(cr, uid, ids, context=context) return value diff --git a/addons/hr_recruitment/hr_recruitment_view.xml b/addons/hr_recruitment/hr_recruitment_view.xml index d2563b5e7fc..074669cfb6d 100644 --- a/addons/hr_recruitment/hr_recruitment_view.xml +++ b/addons/hr_recruitment/hr_recruitment_view.xml @@ -52,7 +52,7 @@ - + @@ -83,7 +83,7 @@ string="Schedule Meeting" help="Schedule interview with this applicant"/>