diff options
| author | chm@openerp.com <> | 2014-03-14 17:23:46 +0100 |
|---|---|---|
| committer | chm@openerp.com <> | 2014-03-14 17:23:46 +0100 |
| commit | 353bbdc2c3d0e019561eb60aacb36b68b4ed935a (patch) | |
| tree | 3edf0d86cb82f1579552b30c54cc5ed2dd0bc22c /addons/website_hr_recruitment | |
| parent | 9bc57fdc08660ae426e0d5910af58ae3cbe432cb (diff) | |
[FIX] website: route and redirect: remove all backslash from url
bzr revid: chm@openerp.com-20140314162346-25vohj6ayp65tgiy
Diffstat (limited to 'addons/website_hr_recruitment')
| -rw-r--r-- | addons/website_hr_recruitment/models/hr_job.py | 2 | ||||
| -rw-r--r-- | addons/website_hr_recruitment/views/templates.xml | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/addons/website_hr_recruitment/models/hr_job.py b/addons/website_hr_recruitment/models/hr_job.py index 26036350004..26aad8ae1b8 100644 --- a/addons/website_hr_recruitment/models/hr_job.py +++ b/addons/website_hr_recruitment/models/hr_job.py @@ -9,7 +9,7 @@ class hr_job(osv.osv): def _website_url(self, cr, uid, ids, field_name, arg, context=None): res = dict.fromkeys(ids, '') for job in self.browse(cr, uid, ids, context=context): - res[job.id] = "/jobs/detail/%s/" % job.id + res[job.id] = "/jobs/detail/%s" % job.id return res def job_open(self, cr, uid, ids, context=None): diff --git a/addons/website_hr_recruitment/views/templates.xml b/addons/website_hr_recruitment/views/templates.xml index 9dab6c6accc..3246eb19931 100644 --- a/addons/website_hr_recruitment/views/templates.xml +++ b/addons/website_hr_recruitment/views/templates.xml @@ -236,7 +236,7 @@ <li t-att-class=" '' if department_id else 'active' "><a href="/jobs">All Departments</a></li> <t t-foreach="departments" t-as="department"> <li t-att-class="'active' if department_id == department.id else ''"> - <a t-attf-href="/jobs/department/#{ slug(department) }/" ><span t-field="department.name"/></a> + <a t-attf-href="/jobs/department/#{ slug(department) }" ><span t-field="department.name"/></a> </li> </t> </ul> @@ -255,7 +255,7 @@ <li t-att-class=" '' if office_id else 'active' "><a href="/jobs">All Offices</a></li> <t t-foreach="offices" t-as="thisoffice"> <li t-att-class=" 'active' if office_id == thisoffice.id else '' "> - <a t-attf-href="/jobs/office/#{ slug(thisoffice) }/" > + <a t-attf-href="/jobs/office/#{ slug(thisoffice) }" > <span t-field="thisoffice.city"/><t t-if="thisoffice.country_id">, <span t-field="thisoffice.country_id.name"/> </t> |
