From dd2aa12c2cc765f50b3eac6dafea042ed5181d3a Mon Sep 17 00:00:00 2001 From: "Xavier BOL (xbo)" Date: Mon, 29 Mar 2021 17:12:24 +0200 Subject: [PATCH] [IMP] project: filter burndown chart by project Before this commit, burndown chart displayed all changes of stage for all active tasks in all projects. The problem is when the database contains many projects and tasks over many years, the user can have a timeout page rather than the burndown chart view, because we take all active tasks in all projects, if the user doesn't archive his projects and tasks, the data retrieved for the burndown chart is too huge to quickly have a visual result. This commit filters the burndown chart by the active project to retrieve only the active tasks in a project and not all projects in the database. task-2458017 closes #68343 --- .../project/report/project_task_burndown_chart_report_views.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/project/report/project_task_burndown_chart_report_views.xml b/addons/project/report/project_task_burndown_chart_report_views.xml index 0ef55d57fce..a79c51515bc 100644 --- a/addons/project/report/project_task_burndown_chart_report_views.xml +++ b/addons/project/report/project_task_burndown_chart_report_views.xml @@ -55,7 +55,7 @@ project.task.burndown.chart.report graph,pivot - {} + {'search_default_project_id': active_id} [('display_project_id', '!=', False)]