Skip to content

Commit c483ff5

Browse files
committed
[IMP] website_hr_recruitment : enhance remote job posting on google search
Description of the issue/feature this PR addresses: Improve job posting structured data with modifying remote job specific XML tags when the job is a remote job, in order to match the requirements from Google Search results Job Posting structured data document. (https://developers.google.com/search/docs/appearance/structured-data/job-posting) Currently Odoo website's job detail page with remote job is not passing the rich results test from search.google.com/test/rich-results, as jobLocation will be empty content when it is a remote job. In order to be eligible in appear in google's enriched search result, jobLocation should not be used in a remote job, instead using jobLocationtype & applicantLocationRequirements. Current behavior before PR: Empty jobLocation content when the job is a remote job. No jobLocationType & applicantLocationsRequirement tag for remote job which not matching with google search result's requirement. Desired behavior after PR is merged: jobLocation tag will be removed if the job is a remote job. jobLocationType will be appeared and the content will be TELECOMMUTE, and applicantLocationRequirements will be company's country. closes odoo#188862 X-original-commit: 8420efd Signed-off-by: Bertrand Dossogne (bedo) <[email protected]>
1 parent 99306bc commit c483ff5

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

addons/website_hr_recruitment/views/website_hr_recruitment_templates.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,15 @@
126126
<meta itemprop="name" t-att-content="job.company_id.name"/>
127127
<meta itemprop="logo" t-attf-content="/logo.png?company=#{job.company_id.id}"/>
128128
</span>
129-
<span itemprop="jobLocation" itemscope="itemscope" itemtype="https://schema.org/Place">
129+
<span t-if="job.address_id.sudo().contact_address" itemprop="jobLocation" itemscope="itemscope" itemtype="https://schema.org/Place">
130130
<meta itemprop="address" t-att-content="job.address_id.sudo().contact_address"/>
131131
</span>
132+
<t t-else="">
133+
<meta itemprop="jobLocationType" content="TELECOMMUTE"/>
134+
<span itemprop="applicantLocationRequirements" itemscope="itemscope" itemtype="https://schema.org/Country">
135+
<meta itemprop="name" t-att-content="job.company_id.country_id.name"/>
136+
</span>
137+
</t>
132138
<!-- Job name -->
133139
<section class="pb32">
134140
<div class="container">

doc/cla/corporate/oerp.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ Daryl Chen [email protected] https://github.com/dc-oerp
1919
Hetal Solanki [email protected] https://github.com/hs-oerp
2020
Foram Darji [email protected] https://github.com/fd-oerp
2121
Mitesh Savani [email protected] https://github.com/ms-oerp
22+
Helena Wong [email protected] https://github.com/hw-oerp

0 commit comments

Comments
 (0)