[IMP] website_hr_recruitment: clear url path
bzr revid: chm@openerp.com-20131119161403-wsqwgfi9w3ythjeg
This commit is contained in:
parent
7a91653e50
commit
e41e8f3957
|
@ -10,7 +10,12 @@ import base64
|
|||
|
||||
|
||||
class website_hr_recruitment(http.Controller):
|
||||
@website.route(['/jobs', '/jobs/department/<model("hr.department"):department>/office/<model("res.partner"):office>', '/jobs/department/<model("hr.department"):department>', '/jobs/office/<model("res.partner"):office>'], type='http', auth="public", multilang=True)
|
||||
@website.route([
|
||||
'/jobs',
|
||||
'/jobs/department/<model("hr.department"):department>/office/<model("res.partner"):office>',
|
||||
'/jobs/department/<model("hr.department"):department>',
|
||||
'/jobs/office/<model("res.partner"):office>'
|
||||
], type='http', auth="public", multilang=True)
|
||||
def jobs(self, department=None, office=None, page=0):
|
||||
hr_job_obj = request.registry['hr.job']
|
||||
domain = []
|
||||
|
@ -80,7 +85,7 @@ class website_hr_recruitment(http.Controller):
|
|||
request.registry['ir.attachment'].create(request.cr, request.uid, attachment_values, context=request.context)
|
||||
return request.website.render("website_hr_recruitment.thankyou", {})
|
||||
|
||||
@website.route(['/job/apply', '/job/apply/<model("hr.job"):job>'], type='http', auth="public", multilang=True)
|
||||
@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 })
|
||||
|
||||
|
|
|
@ -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.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>
|
||||
|
|
|
@ -526,7 +526,7 @@ class Ecommerce(http.Controller):
|
|||
}
|
||||
return request.website.render("website_sale.mycart", values)
|
||||
|
||||
@website.route(['/shop/<path:path>/add_cart/', '/shop/add_cart/'], type='http', auth="public", multilang=True)
|
||||
@website.route(['/shop/add_cart/'], type='http', auth="public", multilang=True)
|
||||
def add_cart(self, path=None, product_id=None, order_line_id=None, remove=None, **kw):
|
||||
self.add_product_to_cart(product_id=product_id and int(product_id), order_line_id=order_line_id and int(order_line_id), number=(remove and -1 or 1))
|
||||
return request.redirect("/shop/mycart/")
|
||||
|
|
Loading…
Reference in New Issue