[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) <sgv@odoo.com>
This commit is contained in:
@@ -136,7 +136,7 @@
|
||||
<a role="button" t-attf-href="/jobs/apply/#{job.id}" class="btn btn-primary btn-lg float-end">Apply Now!</a>
|
||||
</div>
|
||||
<h1 t-field="job.name"/>
|
||||
<h5 class="fw-light" t-field="job.address_id" t-options='{
|
||||
<h5 class="fw-light o_not_editable" t-field="job.address_id" t-options='{
|
||||
"widget": "contact",
|
||||
"fields": ["city"],
|
||||
"no_tag_br": True,
|
||||
|
||||
Reference in New Issue
Block a user