From bdf29635fbdb6e965073cd87735a5c2d82a130f0 Mon Sep 17 00:00:00 2001 From: Tom Kairis Date: Thu, 14 May 2020 07:10:16 +0000 Subject: [PATCH] [IMP] hr_timesheet: Improve general UX (back2basics) Change of several labels to increase consistency. Adapt the size of certain images so that they are rendered without modifying their quality. Display the employee's profile image in the grid view to improve the visual. Add the kanban view to the All Timesheets menu. Modify the Time Off configurations so that the projects displayed are those of a company and that the tasks are adapted according to the chosen project and vice versa. Make the hr_timesheet and timesheet_grid module icon the same for better consistency. closes odoo/odoo#51808 Taskid: 2239802 Related: odoo/enterprise#10745 Signed-off-by: Yannick Tivisse (yti) --- .../report/hr_timesheet_report_view.xml | 12 +++------- .../hr_timesheet/views/hr_timesheet_views.xml | 23 +++++++++++-------- addons/hr_timesheet/views/project_views.xml | 4 +--- .../views/res_config_settings_views.xml | 9 ++++---- .../hr_timesheet_attendance_report_view.xml | 11 +++++---- .../models/res_config_settings.py | 10 +++++--- 6 files changed, 36 insertions(+), 33 deletions(-) diff --git a/addons/hr_timesheet/report/hr_timesheet_report_view.xml b/addons/hr_timesheet/report/hr_timesheet_report_view.xml index c98199cae91..fd518137569 100644 --- a/addons/hr_timesheet/report/hr_timesheet_report_view.xml +++ b/addons/hr_timesheet/report/hr_timesheet_report_view.xml @@ -11,9 +11,7 @@

Record a new activity

- You can register and track your workings hours by project every - day. Every time spent on a project will become a cost and can be re-invoiced to - customers if required. + Track your working hours by projects every day and invoice this time to your customers.

@@ -56,9 +54,7 @@

Record a new activity

- You can register and track your workings hours by project every - day. Every time spent on a project will become a cost and can be re-invoiced to - customers if required. + Track your working hours by projects every day and invoice this time to your customers.

@@ -101,9 +97,7 @@

Record a new activity

- You can register and track your workings hours by project every - day. Every time spent on a project will become a cost and can be re-invoiced to - customers if required. + Track your working hours by projects every day and invoice this time to your customers.

diff --git a/addons/hr_timesheet/views/hr_timesheet_views.xml b/addons/hr_timesheet/views/hr_timesheet_views.xml index bb3ecd7a776..3f708aa7e73 100644 --- a/addons/hr_timesheet/views/hr_timesheet_views.xml +++ b/addons/hr_timesheet/views/hr_timesheet_views.xml @@ -24,7 +24,7 @@ - + @@ -158,6 +158,7 @@ + @@ -168,7 +169,7 @@
- +
@@ -203,7 +204,7 @@ My Timesheets account.analytic.line - tree,form + tree,form,kanban [('project_id', '!=', False), ('user_id', '=', uid)] { "search_default_week":1, @@ -213,9 +214,7 @@

Record a new activity

- You can register and track your workings hours by project every - day. Every time spent on a project will become a cost and can be re-invoiced to - customers if required. + Track your working hours by projects every day and invoice this time to your customers.

@@ -265,6 +264,7 @@ All Timesheets account.analytic.line + tree,form,pivot,kanban [('project_id', '!=', False)] { @@ -274,9 +274,7 @@

Record a new activity

- You can register and track your workings hours by project every - day. Every time spent on a project will become a cost and can be re-invoiced to - customers if required. + Track your working hours by projects every day and invoice this time to your customers.

@@ -302,6 +300,13 @@ + + kanban + 7 + + + + Record a new activity

- You can register and track your workings hours by project every - day. Every time spent on a project will become a cost and can be re-invoiced to - customers if required. + Track your working hours by projects every day and invoice this time to your customers.

diff --git a/addons/hr_timesheet/views/res_config_settings_views.xml b/addons/hr_timesheet/views/res_config_settings_views.xml index 8a983b90570..6b98fbfe0ae 100644 --- a/addons/hr_timesheet/views/res_config_settings_views.xml +++ b/addons/hr_timesheet/views/res_config_settings_views.xml @@ -32,7 +32,7 @@
- Set the time unit used to record your timesheets + Time unit used to record your timesheets
@@ -46,10 +46,10 @@
-
+