From 4dcf11a71d41d56cd938bbd91e8c9d20213a5e5c Mon Sep 17 00:00:00 2001 From: Kartik Chavda Date: Thu, 15 Sep 2022 12:57:37 +0000 Subject: [PATCH] [REF] hr_timesheet: refactor search view of timesheet This commit uses timesheet search view for timesheet report search view so that way we don't have to repeat everything we do with timesheet search view. task-2983879 Part-of: odoo/odoo#106047 --- .../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, 18 insertions(+), 59 deletions(-) diff --git a/addons/hr_timesheet/report/hr_timesheet_report_view.xml b/addons/hr_timesheet/report/hr_timesheet_report_view.xml index f1b47aec754..eb0bba937a0 100644 --- a/addons/hr_timesheet/report/hr_timesheet_report_view.xml +++ b/addons/hr_timesheet/report/hr_timesheet_report_view.xml @@ -81,28 +81,11 @@ 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 697757f6fd5..cc0dd03b26b 100644 --- a/addons/hr_timesheet/views/hr_timesheet_views.xml +++ b/addons/hr_timesheet/views/hr_timesheet_views.xml @@ -169,7 +169,8 @@ - + + account.analytic.line.search account.analytic.line @@ -201,7 +202,7 @@ view.search.my.timesheet.menu account.analytic.line - + primary @@ -214,6 +215,16 @@ + + 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 4bdb206a033..2a96074ae50 100644 --- a/addons/sale_timesheet/report/timesheets_analysis_views.xml +++ b/addons/sale_timesheet/report/timesheets_analysis_views.xml @@ -50,41 +50,6 @@ - - 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 c8f40c856f5..78c2f93836f 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 - +