[ADD] hr_recruitment: add ref of response on applicant form
bzr revid: ara@tinyerp.com-20120522090457-mwfjt7f0cs2y3bis
This commit is contained in:
parent
c43ab9e5c1
commit
f668b71136
|
@ -140,7 +140,7 @@ class hr_applicant(crm.crm_case, osv.osv):
|
|||
'email_from': fields.char('Email', size=128, help="These people will receive email."),
|
||||
'email_cc': fields.text('Watchers Emails', size=252, help="These email addresses will be added to the CC field of all inbound and outbound emails for this record before being sent. Separate multiple email addresses with a comma"),
|
||||
'probability': fields.float('Probability'),
|
||||
'partner_id': fields.many2one('res.partner', 'Contact'),
|
||||
'partner_id': fields.many2one('res.partner', 'Contact Name'),
|
||||
'create_date': fields.datetime('Creation Date', readonly=True, select=True),
|
||||
'write_date': fields.datetime('Update Date', readonly=True),
|
||||
'stage_id': fields.many2one ('hr.recruitment.stage', 'Stage'),
|
||||
|
|
|
@ -450,6 +450,7 @@ class survey_question_wiz(osv.osv_memory):
|
|||
|
||||
# hr.applicant: if survey answered directly in system: attach report to applicant
|
||||
if context.get('active_model') == 'hr.applicant':
|
||||
self.pool.get('hr.applicant').write(cr,uid,[context.get('active_ids')[0]],{'response':context.get('response_id')})
|
||||
result = base64.b64encode(result)
|
||||
file_name = file_name + '.pdf'
|
||||
ir_attachment = self.pool.get('ir.attachment').create(cr, uid,
|
||||
|
|
Loading…
Reference in New Issue