From 0d996dc2c068455b9664dcff5e3787128747c0fa Mon Sep 17 00:00:00 2001 From: ravb-odoo Date: Mon, 19 Jun 2023 18:37:27 +0530 Subject: [PATCH] [IMP] hr_ timesheet, sale_timesheet: hide 'To invoiced' field and rename some fields before this commit, when time and material section is visible then 'To invoiced' field is also visible in portal. This commit hide the 'To invoiced' field in portal when time and material section is visible and rename some fields. closes odoo/odoo#126053 Task: 3251754 Related: odoo/enterprise#42995 Signed-off-by: Xavier Bol (xbo) --- .../views/hr_timesheet_portal_templates.xml | 74 ++++++++++++++----- .../views/project_task_portal_templates.xml | 2 +- .../views/project_portal_templates.xml | 4 - .../views/sale_timesheet_portal_templates.xml | 2 +- 4 files changed, 56 insertions(+), 26 deletions(-) diff --git a/addons/hr_timesheet/views/hr_timesheet_portal_templates.xml b/addons/hr_timesheet/views/hr_timesheet_portal_templates.xml index 9eecedeb499..8a6376776c7 100644 --- a/addons/hr_timesheet/views/hr_timesheet_portal_templates.xml +++ b/addons/hr_timesheet/views/hr_timesheet_portal_templates.xml @@ -153,26 +153,60 @@ - - - - - -
Days Spent:
-
Hours Spent:
- -
-
Days recorded on sub-tasks:
-
Hours recorded on sub-tasks:
-
- -
-
Remaining Days:
-
Remaining Hours:
-
- - - +
+
+
+ + + + + + + + +
+ +
+ + + + + + + + + + +
+ +
+ + + + + + + + +
Total: + + + + + + +
Days recorded on sub-tasks: + + Hours recorded on sub-tasks: + +
Remaining Days: + + Remaining Hours: + +
+
+
+
diff --git a/addons/hr_timesheet/views/project_task_portal_templates.xml b/addons/hr_timesheet/views/project_task_portal_templates.xml index 930350fd772..53b136606cd 100644 --- a/addons/hr_timesheet/views/project_task_portal_templates.xml +++ b/addons/hr_timesheet/views/project_task_portal_templates.xml @@ -19,7 +19,7 @@
-
+
Timesheets
diff --git a/addons/sale_timesheet/views/project_portal_templates.xml b/addons/sale_timesheet/views/project_portal_templates.xml index 0ebed290f8b..7bea5d46f1a 100644 --- a/addons/sale_timesheet/views/project_portal_templates.xml +++ b/addons/sale_timesheet/views/project_portal_templates.xml @@ -17,10 +17,6 @@
- - - - diff --git a/addons/sale_timesheet/views/sale_timesheet_portal_templates.xml b/addons/sale_timesheet/views/sale_timesheet_portal_templates.xml index 9a237798f43..58f97479c6c 100644 --- a/addons/sale_timesheet/views/sale_timesheet_portal_templates.xml +++ b/addons/sale_timesheet/views/sale_timesheet_portal_templates.xml @@ -125,7 +125,7 @@
Invoiced:
-
To invoice: +
Amount Due: