From 14cc9914873c7a358f1f475f6ae30b3cc41cf814 Mon Sep 17 00:00:00 2001 From: William Braeckman Date: Fri, 18 Jun 2021 09:33:39 +0000 Subject: [PATCH] [IMP] hr_timesheet: improve UX Generic improvements of the timesheet app: - Adds pivot and graph view to 'My Timesheets' - Adds a graph view to 'All Timesheets' - Rename 'Timesheet' menu to 'Timesheets' - Remove unused submenu for configuration, directly leads to settings now. Closes: odoo/odoo#72336 Task ID: 2531317 Related: odoo/enterprise#19101 Related: odoo/upgrade#2586 Signed-off-by: LTU-Odoo --- .../hr_timesheet/views/hr_timesheet_views.xml | 77 +++++++++++++++++-- .../views/res_config_settings_views.xml | 7 +- 2 files changed, 71 insertions(+), 13 deletions(-) diff --git a/addons/hr_timesheet/views/hr_timesheet_views.xml b/addons/hr_timesheet/views/hr_timesheet_views.xml index bf77d7855dc..7cb1feb765a 100644 --- a/addons/hr_timesheet/views/hr_timesheet_views.xml +++ b/addons/hr_timesheet/views/hr_timesheet_views.xml @@ -10,7 +10,7 @@ web_icon="hr_timesheet,static/description/icon_timesheet.png"/> @@ -62,6 +62,18 @@ + + account.analytic.line.pivot + account.analytic.line + + + + + + + + + account.analytic.line.graph account.analytic.line @@ -75,6 +87,34 @@ + + + account.analytic.line.graph + account.analytic.line + + + + + + + + + + + + + account.analytic.line.graph + account.analytic.line + + + + + + + + + + account.analytic.line.form account.analytic.line @@ -211,7 +251,7 @@ My Timesheets account.analytic.line - tree,form,kanban + tree,form,kanban,pivot,graph [('project_id', '!=', False), ('user_id', '=', uid)] { "search_default_week":1, @@ -248,6 +288,20 @@ + + pivot + 7 + + + + + + graph + 8 + + + + All Timesheets account.analytic.line - tree,form,pivot,kanban + tree,form,kanban,pivot,graph [('project_id', '!=', False)] { @@ -302,17 +356,24 @@ + + kanban + 6 + + + + - + pivot - - kanban - 7 - + + + graph + diff --git a/addons/hr_timesheet/views/res_config_settings_views.xml b/addons/hr_timesheet/views/res_config_settings_views.xml index 4b181bc1f3d..937d677b41d 100644 --- a/addons/hr_timesheet/views/res_config_settings_views.xml +++ b/addons/hr_timesheet/views/res_config_settings_views.xml @@ -1,8 +1,5 @@ - - res.config.settings.view.form.inherit.hr.timesheet res.config.settings @@ -118,6 +115,6 @@ {'module' : 'hr_timesheet', 'bin_size': False} - +