From 8ccba2ce155ab6d0b40308fca144f2800fc98027 Mon Sep 17 00:00:00 2001 From: Mitali Patel Date: Mon, 5 Jul 2021 13:21:17 +0000 Subject: [PATCH] [IMP] project, hr_timesheet: improve customer rating on project Purpose of the commit is to improve the customer rating report of the project app. So in this commit, done the below changes: - remove the project and task measures - switch the rating value and the count from place in pivot view - remove the default group by rated operator, keep it fot grap view - reorder the some fields on form and list view - use the badge widget for the rating field and the color code is applied to the form view - add some demo data for the feedback field in list view - center the information vertically in kanban view - move the 'customer ratings' menu item below the 'project costs and revenues' one - add the following filters: My Projects, My Team - reorder the group bys and rename 'Resource' into 'Task' - reorder the search fields - project kanban card - the ratings % is represent the average satisfaction rate of the ratings submitted in the last 30 days (including today) - change the tooltip to: Average satisfaction rate for the last 30 days - the 'customer satisfaction' stat button display the last 30 days rating on the project.project and this stat button should open the kanban view by default instead of the list view task-2531428 closes #73581 --- addons/project/data/project_demo.xml | 6 ++-- addons/project/views/project_views.xml | 6 ++-- addons/project/views/rating_views.xml | 38 ++++++++++++++++++++++++-- 3 files changed, 41 insertions(+), 9 deletions(-) diff --git a/addons/project/data/project_demo.xml b/addons/project/data/project_demo.xml index 5a28c0ebdc6..043938e9641 100644 --- a/addons/project/data/project_demo.xml +++ b/addons/project/data/project_demo.xml @@ -906,9 +906,9 @@ Send it ASAP, its urgent. - - - + + + diff --git a/addons/project/views/project_views.xml b/addons/project/views/project_views.xml index 3b802f21ad0..c81a5cc9545 100644 --- a/addons/project/views/project_views.xml +++ b/addons/project/views/project_views.xml @@ -658,10 +658,10 @@
-
+
- % + %
@@ -1436,7 +1436,7 @@ action="rating_rating_action_project_report" parent="menu_project_report" groups="project.group_project_rating" - sequence="40"/> + sequence="51"/> project.kanban.inherit.project diff --git a/addons/project/views/rating_views.xml b/addons/project/views/rating_views.xml index 7cf215b7c8a..4250fab7e5f 100644 --- a/addons/project/views/rating_views.xml +++ b/addons/project/views/rating_views.xml @@ -24,6 +24,13 @@ primary + + 0 + + + + + Task @@ -46,8 +53,11 @@ 1
- +
+ + + 1 @@ -63,6 +73,9 @@ project_rating_pivot + + 1 +
@@ -84,8 +97,24 @@ primary - + + + + + + Project + + + Task + + + + + + + + Task @@ -208,7 +237,10 @@ Let's wait for your customers to manifest themselves.

- {'search_default_rating_last_30_days': 1, 'search_default_responsible': 1} + { + 'search_default_rating_last_30_days': 1, + 'graph_groupbys': ['rated_partner_id'], + }