From 1455e34cd5e9723e4d85df401ba7116e1b1c452c Mon Sep 17 00:00:00 2001 From: Thibault Libioulle Date: Fri, 2 Jul 2021 08:24:35 +0000 Subject: [PATCH] [FIX] project: remove default group by user This commit removes the default group by User for the Tasks Analysis report, which was active once one clicked on "Open Tasks" in the Project Update Kanban view. This commit also removes the default group by user in the graph view (which is induced by the field in the graph arch, through graph view init function). Issue : The graph view of report.project.task.user is not able to render the project_id>user_id groupby since the number of rows to display is to high. After considering improvements client-side (e.g. drop last groupby when there are too many datasets to render), we concluded that the case of report.project.task.user is rather isolated. The real issue is that this 'complex' two-level groupby is forced in the view itself, making it unusable on larger databases (e.g. next.odoo.com). On top of that, project_id and user_id are usually dependent dimensions (users are usually working in the same few projects). PR: #73299 task-2588087 closes odoo/odoo#77013 X-original-commit: 605b4e109afabaff0876ca92cecfce9a6c615977 Signed-off-by: LTU-Odoo --- addons/project/models/project.py | 1 - addons/project/report/project_report_views.xml | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/project/models/project.py b/addons/project/models/project.py index 665ee2b7bb9..6be16a3c627 100644 --- a/addons/project/models/project.py +++ b/addons/project/models/project.py @@ -681,7 +681,6 @@ class Project(models.Model): 'active_id': self.id, 'search_default_open_tasks': True, 'search_default_Stage': True, - 'search_default_User': True }), }, 'value': counts['open_tasks_count'] diff --git a/addons/project/report/project_report_views.xml b/addons/project/report/project_report_views.xml index f1ff2cf5b4a..efc92bb3e9f 100644 --- a/addons/project/report/project_report_views.xml +++ b/addons/project/report/project_report_views.xml @@ -17,7 +17,8 @@ - + +