From f385cd62de93c8f7bf7a2afcba4d43ac1871eb7f Mon Sep 17 00:00:00 2001 From: Alvaro Fuentes Date: Thu, 26 Jan 2023 12:42:11 +0000 Subject: [PATCH] [FIX] hr_recruitment: set view priority The view `hr_job_search_view` needs an xpath anchor set on the view `view_job_filter_recruitment`. Since both views have default priority the order they are applied depends on their ID. In a normal install process the views are created in the right order, but there are cases where the IDs are not on the right order. Steps to reproduce: 1. Install hr_recruitment in 15.0 2. Remove the view pointed by view_job_filter_recruitment 3. Update to 16.0 We get an error: ``` ValueError: Element '' cannot be located in parent view ``` closes odoo/odoo#111140 X-original-commit: 1e77fabfa087fbeedab974645646bc1761c07468 Signed-off-by: Christophe Simonis Signed-off-by: Alvaro Fuentes Suarez (afu) --- addons/hr_recruitment/views/hr_job_views.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/hr_recruitment/views/hr_job_views.xml b/addons/hr_recruitment/views/hr_job_views.xml index 5a20a8e04e9..8b7c10070e0 100644 --- a/addons/hr_recruitment/views/hr_job_views.xml +++ b/addons/hr_recruitment/views/hr_job_views.xml @@ -242,6 +242,7 @@ hr.job.search hr.job + 20