[FIX] website_hr_recruitment: no name in POST data, pick some other value

use partner_name, makes the least amount of nonsense

bzr revid: xmo@openerp.com-20131125134232-pwxxv7nslt2kzbwj
This commit is contained in:
Xavier Morel 2013-11-25 14:42:32 +01:00
parent 21e860c4d0
commit a814d2d17c
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ class website_hr_recruitment(http.Controller):
'datas': base64.encodestring(post['ufile'].read()),
'datas_fname': post['ufile'].filename,
'res_model': 'hr.applicant',
'res_name': post['name'],
'res_name': data['partner_name'],
'res_id': jobid
}
request.registry['ir.attachment'].create(request.cr, request.uid, attachment_values, context=request.context)