From 1c6103c22ae48e6f95fdfd5340c368a6bf9926ad Mon Sep 17 00:00:00 2001 From: Nidhi Patel Date: Wed, 22 Sep 2021 13:32:46 +0000 Subject: [PATCH] [IMP] (hr,sale)_timesheet, *: improve header for portal view * = project, sale_project Currently, the header is displayed above every group when the group by is applied. In this commit, we move the header with the fields labels at the top of the table. Also, remove the string before the field indication. task-2655707 closes odoo/odoo#77408 Related: odoo/enterprise#21989 Signed-off-by: Laurent Stukkens (ltu) --- .../views/hr_timesheet_portal_templates.xml | 30 ++++++------- .../views/project_portal_templates.xml | 3 ++ .../views/project_portal_templates.xml | 44 ++++++++++--------- .../views/sale_project_portal_templates.xml | 12 +++-- .../views/sale_timesheet_portal_templates.xml | 14 ++++-- 5 files changed, 56 insertions(+), 47 deletions(-) diff --git a/addons/hr_timesheet/views/hr_timesheet_portal_templates.xml b/addons/hr_timesheet/views/hr_timesheet_portal_templates.xml index dded6604b3e..59f81a81ae0 100644 --- a/addons/hr_timesheet/views/hr_timesheet_portal_templates.xml +++ b/addons/hr_timesheet/views/hr_timesheet_portal_templates.xml @@ -33,14 +33,24 @@ + + + Date + Employee + Project + Task + Description + Days Spent + Hours Spent + + - - + + - Timesheets for project: @@ -54,7 +64,6 @@ - Timesheets for task: @@ -68,7 +77,6 @@ - Timesheets on @@ -82,7 +90,6 @@ - Timesheets for employee: @@ -105,16 +112,7 @@ - - Date - Employee - Project - Task - Description - Days Spent - Hours Spent - - + diff --git a/addons/hr_timesheet/views/project_portal_templates.xml b/addons/hr_timesheet/views/project_portal_templates.xml index bac000f7456..cb8ff94437a 100644 --- a/addons/hr_timesheet/views/project_portal_templates.xml +++ b/addons/hr_timesheet/views/project_portal_templates.xml @@ -48,6 +48,9 @@ + + 8 + Days Spent Hours Spent diff --git a/addons/project/views/project_portal_templates.xml b/addons/project/views/project_portal_templates.xml index d5388c65f76..29f48d4bd09 100644 --- a/addons/project/views/project_portal_templates.xml +++ b/addons/project/views/project_portal_templates.xml @@ -97,33 +97,37 @@