From 587f2508585487a181a5b0de725857f5d032bc5e Mon Sep 17 00:00:00 2001 From: "Rohitkumar (roku)" Date: Thu, 9 Feb 2023 07:26:42 +0000 Subject: [PATCH] [IMP] project,(hr,sale)_timesheet: generic improvements for project app Purpose of the commit is to do the generic improvements for project. So in this commit did the following changes: - add a space between 'access to:' and the name of the course in SOL nameget. - hide the 'remaining hours' value if the nb of 'initially planned hours' is equal to 0 in task list view. - hide the 'initially planned hours' and 'hours spent' values if they are equal to 0 in task list view. - hide the 'milestone' and 'assignees' fields if they are false task calendar popover - hide the 'remaining hours on SO' value if there is no SOL set on the task list view - use the progressbar widget for the progress field update list view task-2949984 closes odoo/odoo#112265 Signed-off-by: Xavier Bol (xbo) --- addons/hr_timesheet/views/project_task_views.xml | 7 ++++--- addons/project/views/project_task_views.xml | 4 ++-- addons/project/views/project_update_views.xml | 2 +- .../sale_timesheet/views/project_sharing_views.xml | 4 +++- addons/sale_timesheet/views/project_task_views.xml | 14 +++++++++++--- .../website_sale_slides/models/product_product.py | 2 +- 6 files changed, 22 insertions(+), 11 deletions(-) diff --git a/addons/hr_timesheet/views/project_task_views.xml b/addons/hr_timesheet/views/project_task_views.xml index c8524a124a3..b490376e385 100644 --- a/addons/hr_timesheet/views/project_task_views.xml +++ b/addons/hr_timesheet/views/project_task_views.xml @@ -157,11 +157,12 @@ - - + + + - + diff --git a/addons/project/views/project_task_views.xml b/addons/project/views/project_task_views.xml index 2cae65bdf60..f26d1ec5f49 100644 --- a/addons/project/views/project_task_views.xml +++ b/addons/project/views/project_task_views.xml @@ -690,8 +690,8 @@ scales="month,year"> - - + + diff --git a/addons/project/views/project_update_views.xml b/addons/project/views/project_update_views.xml index 811aba6301a..f99275ab79a 100644 --- a/addons/project/views/project_update_views.xml +++ b/addons/project/views/project_update_views.xml @@ -108,7 +108,7 @@ - + diff --git a/addons/sale_timesheet/views/project_sharing_views.xml b/addons/sale_timesheet/views/project_sharing_views.xml index cd1f8c86744..61fcde15fc7 100644 --- a/addons/sale_timesheet/views/project_sharing_views.xml +++ b/addons/sale_timesheet/views/project_sharing_views.xml @@ -18,7 +18,9 @@ optional="hide"/> - + + + diff --git a/addons/sale_timesheet/views/project_task_views.xml b/addons/sale_timesheet/views/project_task_views.xml index e29058bfe20..bf6638eae70 100644 --- a/addons/sale_timesheet/views/project_task_views.xml +++ b/addons/sale_timesheet/views/project_task_views.xml @@ -88,10 +88,16 @@ - + + + - + + + @@ -103,7 +109,9 @@ - + + + diff --git a/addons/website_sale_slides/models/product_product.py b/addons/website_sale_slides/models/product_product.py index fd0a638189c..4997aab145d 100644 --- a/addons/website_sale_slides/models/product_product.py +++ b/addons/website_sale_slides/models/product_product.py @@ -16,4 +16,4 @@ class Product(models.Model): return super(Product, self).get_product_multiline_description_sale() new_line = '' if len(payment_channels) == 1 else '\n' - return _('Access to:%s%s', new_line, '\n'.join(payment_channels.mapped('name'))) + return _('Access to: %s%s', new_line, '\n'.join(payment_channels.mapped('name')))