[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:
parent
21e860c4d0
commit
a814d2d17c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue