[FIX] website,website_hr_recruitment: fix crawler (job url)

Commit 2ab6ce80d6 introduced an issue where the
URL for new job offer was added in the DOM even when website_hr_recruitment is
not installed.

This is a problem because the crawler tries to navigate that URL and returns an
error because the route does not exist without website_hr_recruitment.

closes odoo/odoo#29217
This commit is contained in:
Sébastien Theys
2018-12-03 10:35:06 +00:00
parent 8f3ac2530f
commit 1d45184630
2 changed files with 4 additions and 1 deletions
@@ -136,7 +136,7 @@
</a>
</div>
<div groups="base.group_system" name="module_website_hr_recruitment" t-att-data-module-id="env.ref('base.module_website_hr_recruitment').id" t-att-data-module-shortdesc="env.ref('base.module_website_hr_recruitment').shortdesc" class="col-md-4 mb8 o_new_content_element">
<a href="/jobs/add">
<a href="#">
<i class="fa fa-briefcase"/>
<p>New Job Offer</p>
</a>
@@ -507,6 +507,9 @@
<!-- User Navbar -->
<template id="user_navbar_inherit_website_hr_recruitment" inherit_id="website.user_navbar">
<xpath expr="//div[@id='o_new_content_menu_choices']//div[@name='module_website_hr_recruitment']/a" position="attributes">
<attribute name="href">/jobs/add</attribute>
</xpath>
<xpath expr="//div[@id='o_new_content_menu_choices']//div[@name='module_website_hr_recruitment']" position="attributes">
<attribute name="name"/>
<attribute name="t-att-data-module-id"/>