From dea07fc29116c36c8a3773eec0fce526a972ba08 Mon Sep 17 00:00:00 2001 From: XavierDo Date: Tue, 20 Mar 2018 12:48:44 +0100 Subject: [PATCH] [IMP] project, portal: group tasks by project on portal. The portal view for tasks previously listed all task of all projects without grouping them. It was a problem, mainly when we want to make the distinction on project label_tasks, to make the difference between tasks, issues, ... Grouping task by project by default allows to show the label_tasks before each project. Grouping the tasks removes the possibility to define a primary ordering. We want to be able to ungroup the tasks in some cases. The implentation was done in the portalsearch bar adding a group by option. The portal proposes two grouping options, project (by default) and none (to keep strict ordering). Task: #1827950 PR #23769 --- addons/portal/views/portal_templates.xml | 15 +++++ addons/project/controllers/portal.py | 18 +++++- .../views/project_portal_templates.xml | 57 ++++++++++--------- 3 files changed, 63 insertions(+), 27 deletions(-) diff --git a/addons/portal/views/portal_templates.xml b/addons/portal/views/portal_templates.xml index c02573f7613..fef256890ae 100644 --- a/addons/portal/views/portal_templates.xml +++ b/addons/portal/views/portal_templates.xml @@ -195,6 +195,21 @@ + +