From aaafc4de17a0d0f4060a7a1aca3a46dcdef64e5a Mon Sep 17 00:00:00 2001 From: Kartik Chavda Date: Tue, 14 Feb 2023 05:59:57 +0000 Subject: [PATCH] [IMP] project: add default group in view instead of action Purpose of this commit to avoid having a default group by that would impact all views without distinction by using the new attribute that was recently introduced for the list view. So this commit add group the kanban and list views by stage by using an attribute on list and kanban view instead of a default group by in action. task-3165202 Part-of: odoo/odoo#112620 --- .../project/views/project_project_views.xml | 67 ++++++++++++++++++- addons/sale_project/views/project_views.xml | 2 +- 2 files changed, 65 insertions(+), 4 deletions(-) diff --git a/addons/project/views/project_project_views.xml b/addons/project/views/project_project_views.xml index 2b4c6e5f388..8e6e3ebc939 100644 --- a/addons/project/views/project_project_views.xml +++ b/addons/project/views/project_project_views.xml @@ -223,6 +223,18 @@ + + project.project.tree.group.stage + project.project + + primary + + + stage_id + + + + project.project.tree.config project.project @@ -239,6 +251,18 @@ + + project.project.tree.config.group.stage + project.project + + primary + + + stage_id + + + + project.form.quick_create project.project @@ -479,6 +503,18 @@ + + project.project.kanban.group.stage + project.project + primary + + + + stage_id + + + + project.kanban.inherit.config.project project.project @@ -492,6 +528,18 @@ + + project.kanban.inherit.config.project.group.stage + project.project + primary + + + + stage_id + + + + project.project.calendar project.project @@ -539,7 +587,7 @@ Projects project.project - {'search_default_groupby_stage': 1} + {} [] kanban,tree,form,calendar,activity @@ -555,6 +603,19 @@ + + + kanban + + + + + + tree + + + + Projects @@ -598,13 +659,13 @@ tree - + kanban - + diff --git a/addons/sale_project/views/project_views.xml b/addons/sale_project/views/project_views.xml index c2d263f76e0..1cad9a2f5df 100644 --- a/addons/sale_project/views/project_views.xml +++ b/addons/sale_project/views/project_views.xml @@ -10,6 +10,6 @@ {'default_allow_billable': True, 'sale_show_partner_name': True} - {'default_allow_billable': True, 'sale_show_partner_name': True, 'search_default_groupby_stage': 1} + {'default_allow_billable': True, 'sale_show_partner_name': True}