From 71eea06e7caa26d7b49d947b8a39fa70f08a1456 Mon Sep 17 00:00:00 2001 From: Ethan Vincent Date: Fri, 22 Mar 2024 13:37:04 +0000 Subject: [PATCH] [FIX] website_hr_recruitment: get location job app **Current behavior:** In the jobs/ directory on the website, if a position has a location set in its configuration, the 'Location' label will display the name of the company rather than the city where it is located. **Expected behavior:** The city will be displayed under the 'Location' label. **Steps to reproduce:** 1. In the Recruitment app, give a job a location value 2. On the website, go to the jobs/ directory and navigate to the position from step 1 3. Click 'Apply Now!' and look at the location label on the right side of the page **Cause of the issue:** This field was missing the "contact" widget type in its t-options. **Fix:** Add the widget type and additionally display "Remote" for the location when there is no location set. opw-3761348 closes odoo/odoo#159149 X-original-commit: fdb07fa0e67cacbcaee9ef99bbb3b315cd6baaf5 Signed-off-by: Vincent Ethan Signed-off-by: Bertrand Dossogne (bedo) --- .../i18n/website_hr_recruitment.pot | 1 + .../views/website_hr_recruitment_templates.xml | 9 ++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/addons/website_hr_recruitment/i18n/website_hr_recruitment.pot b/addons/website_hr_recruitment/i18n/website_hr_recruitment.pot index 18439d648e8..cfee7098c76 100644 --- a/addons/website_hr_recruitment/i18n/website_hr_recruitment.pot +++ b/addons/website_hr_recruitment/i18n/website_hr_recruitment.pot @@ -629,6 +629,7 @@ msgid "Real responsibilities and challenges in a fast evolving company" msgstr "" #. module: website_hr_recruitment +#: model_terms:ir.ui.view,arch_db:website_hr_recruitment.apply #: model_terms:ir.ui.view,arch_db:website_hr_recruitment.job_filter_by_countries #: model_terms:ir.ui.view,arch_db:website_hr_recruitment.job_filter_by_offices msgid "Remote" diff --git a/addons/website_hr_recruitment/views/website_hr_recruitment_templates.xml b/addons/website_hr_recruitment/views/website_hr_recruitment_templates.xml index 29ad08d8ca7..d7a356addd0 100644 --- a/addons/website_hr_recruitment/views/website_hr_recruitment_templates.xml +++ b/addons/website_hr_recruitment/views/website_hr_recruitment_templates.xml @@ -323,12 +323,15 @@ Job
-
+
Location -
+
Remote
Department