[FIX] unfuck applyjobpost controller
bzr revid: xmo@openerp.com-20131125134002-dz7bzndlktrywy3i
This commit is contained in:
parent
e18fafb8a8
commit
c6284ffa61
|
@ -86,8 +86,13 @@ class website_hr_recruitment(http.Controller):
|
|||
return request.website.render("website_hr_recruitment.thankyou", {})
|
||||
|
||||
@website.route(['/job/apply'], type='http', auth="public", multilang=True)
|
||||
def applyjobpost(self, job=None):
|
||||
return request.website.render("website_hr_recruitment.applyjobpost", { 'job': job })
|
||||
def applyjobpost(self, job):
|
||||
[job_object] = request.registry['hr.job'].browse(
|
||||
request.cr, request.uid, [int(job)], context=request.context)
|
||||
|
||||
return request.website.render("website_hr_recruitment.applyjobpost", {
|
||||
'job': job_object
|
||||
})
|
||||
|
||||
@website.route('/job/publish', type='json', auth="admin", multilang=True)
|
||||
def publish(self, id, object):
|
||||
|
|
|
@ -138,7 +138,7 @@
|
|||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-center mt16 mb16">
|
||||
<a t-href="/job/apply/?job=#{ job.id }/" class="btn btn-primary btn-lg">Apply</a>
|
||||
<a t-href="/job/apply/?job=#{ job.id }" class="btn btn-primary btn-lg">Apply</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue