[FIX] hr_applicant: response to response_id

bzr revid: chm@openerp.com-20130301121241-dr0bepr7hf9gddd6
This commit is contained in:
Christophe Matthieu
2013-03-01 13:12:41 +01:00
parent 6a23a4f7c1
commit a8e4b40832
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -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'),
+2 -2
View File
@@ -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
@@ -52,7 +52,7 @@
<field name="date_action" invisible="context.get('invisible_next_date', True)"/>
<field name="source_id" invisible="1"/>
<field name="survey" invisible="1"/>
<field name="response" invisible="1"/>
<field name="response_id" invisible="1"/>
<field name="priority"/>
<field name="type_id" invisible="1"/>
<field name="availability" invisible="1"/>
@@ -83,7 +83,7 @@
string="Schedule Meeting" help="Schedule interview with this applicant"/>
<button name="%(survey.action_view_survey_question_message)d" type="action"
string="Start Interview" help="Answer related job question"
context="{'survey_id': survey, 'response_id': [response_id], 'response_no':0 ,'active' : response, 'object' : 'hr.applicant'}"
context="{'survey_id': survey, 'response_id': [response_id]}"
attrs="{'invisible':[('survey','=',False)]}"/>
<button name="action_print_survey" type="object"
string="Print Interview" help="Print interview report"