From 437f0367d529f6e3e525892825e8dca106eca82b Mon Sep 17 00:00:00 2001 From: omra-odoo Date: Fri, 3 Nov 2023 05:08:42 +0000 Subject: [PATCH] [FIX] website_hr_recruitment: make the job location field not editable This issue arises when attempting to edit the job location field for a remote job or when there is no value in the job location, try to edit and save record. Steps to produce : - Install `website_hr_recruitment` module. - Open a job position that has a remote job location or no value in the job location. - Open editor > Edit that field and save the record. - Error will be generated. Error: int() argument must be a string, a bytes-like object or a real number, not 'NoneType' This issue occurs because here https://github.com/odoo/odoo/blob/5e0f5c98330ca1b5d0696c109c9e3a2050a6210c/addons/web_editor/models/ir_qweb.py#L215 it will get None and then when it will try to convert in int than error occurs. after this commit user will not be able to edit the job location field. sentry-4588277341 closes odoo/odoo#143065 X-original-commit: e8f1152daeef3d28a2f9e062e77e11303a26cef2 Signed-off-by: Sofie Gvaladze (sgv) --- .../views/website_hr_recruitment_templates.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 f086fe8c560..061f588fa7e 100644 --- a/addons/website_hr_recruitment/views/website_hr_recruitment_templates.xml +++ b/addons/website_hr_recruitment/views/website_hr_recruitment_templates.xml @@ -136,7 +136,7 @@ Apply Now!

-