From d387acffb756c2eb4bf61877e950902587dc8991 Mon Sep 17 00:00:00 2001 From: luve-odoo Date: Fri, 5 May 2023 08:55:09 +0000 Subject: [PATCH] [IMP] project : Customer Ratings improvements - Removal of 'my team's ratings' and the 'my department's ratings' filters in order to be more consistent with the project.task search view - UI improvements in the project form ratting settings TaskId-3251609 closes odoo/odoo#120633 Related: odoo/upgrade#4632 Signed-off-by: Xavier Bol (xbo) --- addons/hr_timesheet/__manifest__.py | 1 - addons/hr_timesheet/views/rating_rating_views.xml | 14 -------------- addons/project/models/project_project.py | 4 ++-- addons/project/views/project_project_views.xml | 12 +++++++++--- 4 files changed, 11 insertions(+), 20 deletions(-) delete mode 100644 addons/hr_timesheet/views/rating_rating_views.xml diff --git a/addons/hr_timesheet/__manifest__.py b/addons/hr_timesheet/__manifest__.py index eee1ccf6a18..668868dfc51 100644 --- a/addons/hr_timesheet/__manifest__.py +++ b/addons/hr_timesheet/__manifest__.py @@ -39,7 +39,6 @@ up a management by affair. 'views/hr_employee_views.xml', 'data/hr_timesheet_data.xml', 'views/project_task_sharing_views.xml', - 'views/rating_rating_views.xml', 'views/project_update_views.xml', 'wizard/hr_employee_delete_wizard_views.xml', 'views/hr_timesheet_menus.xml', diff --git a/addons/hr_timesheet/views/rating_rating_views.xml b/addons/hr_timesheet/views/rating_rating_views.xml deleted file mode 100644 index 9f55a28ed81..00000000000 --- a/addons/hr_timesheet/views/rating_rating_views.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - rating.rating.search.project.inherited - rating.rating - - - - - - - - - diff --git a/addons/project/models/project_project.py b/addons/project/models/project_project.py index e2ee58991be..1e957861302 100644 --- a/addons/project/models/project_project.py +++ b/addons/project/models/project_project.py @@ -175,8 +175,8 @@ class Project(models.Model): rating_active = fields.Boolean('Customer Ratings', default=lambda self: self.env.user.has_group('project.group_project_rating')) allow_rating = fields.Boolean('Allow Customer Ratings', compute="_compute_allow_rating", default=lambda self: self.env.user.has_group('project.group_project_rating')) rating_status = fields.Selection( - [('stage', 'Rating when changing stage'), - ('periodic', 'Periodic rating') + [('stage', 'when reaching a given stage'), + ('periodic', 'on a periodic basis') ], 'Customer Ratings Status', default="stage", required=True, help="Collect feedback from your customers by sending them a rating request when a task enters a certain stage. To do so, define a rating email template on the corresponding stages.\n" "Rating when changing stage: an email will be automatically sent when the task reaches the stage on which the rating email template is set.\n" diff --git a/addons/project/views/project_project_views.xml b/addons/project/views/project_project_views.xml index 83b069babc2..8ec6cbe8ad4 100644 --- a/addons/project/views/project_project_views.xml +++ b/addons/project/views/project_project_views.xml @@ -124,14 +124,20 @@
- +
- + Send a rating request: +
-
+ + + A rating request will be sent as soon as the task reaches a stage on which a Rating Email Template is defined. + Rating requests will be sent as long as the task remains in a stage on which a Rating Email Template is defined. +