From df9c2967f0e7cbdb0ced436e946ae4e1b65d6497 Mon Sep 17 00:00:00 2001 From: "Stefan-Calin Crainiciuc (stcc)" Date: Wed, 3 Aug 2022 12:11:46 +0000 Subject: [PATCH] [FIX] hr_contract: remove create button for contract history Steps to reproduce: - install hr and hr_contract apps - go to Employees app > Employees > Contracts - switch to Kanban view There you can see a 'Create' button. If you click it, it creates a contract history form view for the default employee, which is 'False'. This view is not needed, since it doesn't make sense to create a contract history by itself, as opposed to creating a contract history when a new employee is added to the database. This commit removes the contract history 'Create' button. opw-2929424 closes odoo/odoo#97780 X-original-commit: 337400b00bcaced2f27417e7a925582b80b6a514 Signed-off-by: Nicolas Lempereur (nle) Signed-off-by: stcc-odoo --- .../hr_contract/report/hr_contract_history_report_views.xml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/addons/hr_contract/report/hr_contract_history_report_views.xml b/addons/hr_contract/report/hr_contract_history_report_views.xml index 614a98e66ff..c706855c022 100644 --- a/addons/hr_contract/report/hr_contract_history_report_views.xml +++ b/addons/hr_contract/report/hr_contract_history_report_views.xml @@ -144,7 +144,8 @@ edit="false" delete="false" duplicate="false" - import="false"> + import="false" + create="false"> @@ -168,7 +169,7 @@ hr.contract.history.view.kanban hr.contract.history - +