From 0c4c36f9640a6d0afe4ec619f1f26e8c85dfcf84 Mon Sep 17 00:00:00 2001 From: Damien Bouvy Date: Fri, 12 Dec 2014 11:46:40 +0100 Subject: [PATCH] [IMP] crm: default filter is 'not dead' instead if 'unassigned' and displays an info message in the crm.stage form view. Dead leads should'nt be included in the default view since they can pollute the view over time. Instead, a filter for all leads (except the dead ones) is used by default. A small info message inform the user that the "dead" status is equivalent to setting probabilities to 0 and to fold the stage in kanban for a crm.stage. --- addons/crm/crm_lead_menu.xml | 2 +- addons/crm/crm_lead_view.xml | 3 +++ addons/crm/crm_view.xml | 9 ++++++++- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/addons/crm/crm_lead_menu.xml b/addons/crm/crm_lead_menu.xml index 90a09b18759..7aee5dcc1bf 100644 --- a/addons/crm/crm_lead_menu.xml +++ b/addons/crm/crm_lead_menu.xml @@ -14,7 +14,7 @@ 'stage_type':'lead', 'empty_list_help_model': 'crm.team', 'needaction_menu_ref': 'crm.menu_crm_opportunities', - 'search_default_unassigned':1, + 'search_default_to_process':1, } diff --git a/addons/crm/crm_lead_view.xml b/addons/crm/crm_lead_view.xml index eb573e1742f..99e8ab17cb9 100644 --- a/addons/crm/crm_lead_view.xml +++ b/addons/crm/crm_lead_view.xml @@ -356,6 +356,9 @@ + diff --git a/addons/crm/crm_view.xml b/addons/crm/crm_view.xml index 5b133e9004c..ce4c22e773b 100644 --- a/addons/crm/crm_view.xml +++ b/addons/crm/crm_view.xml @@ -79,7 +79,14 @@ - +