From f5b2dea4575796866886906a2854436670b7ccb7 Mon Sep 17 00:00:00 2001 From: "John Laterre (jol)" Date: Tue, 10 Oct 2023 15:51:59 +0200 Subject: [PATCH] [REV] hr_timesheet: refactor search view of timesheet This reverts commit 4dcf11a71d41d56cd938bbd91e8c9d20213a5e5c. The reason is that it broke the inheritance with `analytic`, and thus with `account`. This in turn made it impossible to harmonize the search view between modules. Part-of: odoo/odoo#138542 --- .../report/hr_timesheet_report_view.xml | 25 ++++++++++--- .../hr_timesheet/views/hr_timesheet_views.xml | 15 ++------ .../report/timesheets_analysis_views.xml | 35 +++++++++++++++++++ .../views/hr_timesheet_views.xml | 2 +- 4 files changed, 59 insertions(+), 18 deletions(-) diff --git a/addons/hr_timesheet/report/hr_timesheet_report_view.xml b/addons/hr_timesheet/report/hr_timesheet_report_view.xml index 764834750a8..d47299edc01 100644 --- a/addons/hr_timesheet/report/hr_timesheet_report_view.xml +++ b/addons/hr_timesheet/report/hr_timesheet_report_view.xml @@ -81,11 +81,28 @@ timesheets.analysis.report.search timesheets.analysis.report - - primary - - Timesheet Report + + + + + + + + + + + + + + + + + + + + + diff --git a/addons/hr_timesheet/views/hr_timesheet_views.xml b/addons/hr_timesheet/views/hr_timesheet_views.xml index e678694403f..e66476c3e53 100644 --- a/addons/hr_timesheet/views/hr_timesheet_views.xml +++ b/addons/hr_timesheet/views/hr_timesheet_views.xml @@ -166,8 +166,7 @@ - - + account.analytic.line.search account.analytic.line @@ -199,7 +198,7 @@ view.search.my.timesheet.menu account.analytic.line - + primary @@ -212,16 +211,6 @@ - - view.search.my.timesheet.menu - account.analytic.line - - primary - - - - - account.analytic.line.kanban account.analytic.line diff --git a/addons/sale_timesheet/report/timesheets_analysis_views.xml b/addons/sale_timesheet/report/timesheets_analysis_views.xml index 2a96074ae50..4bdb206a033 100644 --- a/addons/sale_timesheet/report/timesheets_analysis_views.xml +++ b/addons/sale_timesheet/report/timesheets_analysis_views.xml @@ -50,6 +50,41 @@ + + timesheets.analysis.report.search + timesheets.analysis.report + + + + + + + + + + + + + + + + + + + + + + + Timesheets by Billing Type timesheets.analysis.report diff --git a/addons/sale_timesheet/views/hr_timesheet_views.xml b/addons/sale_timesheet/views/hr_timesheet_views.xml index d9d5cee45cc..b41ccc06733 100644 --- a/addons/sale_timesheet/views/hr_timesheet_views.xml +++ b/addons/sale_timesheet/views/hr_timesheet_views.xml @@ -4,7 +4,7 @@ account.analytic.line.search account.analytic.line - +