From 4bed87d39bf4aa67c3b87522ee4e6407c31b9c44 Mon Sep 17 00:00:00 2001 From: ijas ahammed Date: Thu, 21 Oct 2021 05:19:40 +0000 Subject: [PATCH] [IMP] event: add groupby and change sequence of view Right now, when we opens attendees from an event (stat button or kanban button) it first displays the kanban view. In this commit we have changed the sequence of the view and added groupby create_date (week), after this commit if the attendees opened from stat button or kanban button it will display the list view with the groupby create_date (week) before the kanban view, the purpose is that this is not the path to register or confirm attendance, you just want to keep an eye on how well your event is filling up and need an overview. TaskID-2670765 Part-of: odoo/odoo#79166 --- addons/event/views/event_views.xml | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/addons/event/views/event_views.xml b/addons/event/views/event_views.xml index 712a6d2b174..0897e83e097 100644 --- a/addons/event/views/event_views.xml +++ b/addons/event/views/event_views.xml @@ -123,7 +123,7 @@ event.registration Attendees - kanban,tree,form,calendar,graph + tree,kanban,form,calendar,graph [('event_id', '=', active_id)] {'default_event_id': active_id} @@ -181,7 +181,8 @@
- + Expected attendees @@ -495,7 +499,9 @@ event.registration.tree event.registration - + @@ -704,7 +710,8 @@ - + + @@ -714,8 +721,14 @@ Attendees event.registration - pivot,graph,kanban,tree,form - {} + graph,pivot,kanban,tree,form + { + 'search_default_filter_last_month': 1, + 'search_default_status': 1, + 'search_default_group_by_create_day': 1, + 'search_default_group_event': 1, + } +