From 920b6730988eb6a99a55d30e04fcf17c4c82bdbe Mon Sep 17 00:00:00 2001 From: ijas ahammed Date: Fri, 4 Jun 2021 13:39:25 +0000 Subject: [PATCH] [IMP] crm: improve pipeline analysis report search view MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit improve the pipeline analysis search for a better usability. The changes includes: - Rename 'My Opportunities' filter to 'My Pipeline' - Move 'Opportunity' filter above 'Lead', rename it to 'Opportunities', and display only if leads are activated - Rename 'Lead' filter to 'Leads', and display only if leads are activated - Remove the string from filter 'Creation Date', and use the default field name (which is 'Created On'). Also updated some filter names to have a global convention and avoid name clashing, updated filter names are listed below. - `opportunity` to `filter_opportunity` - `lead` to `filter_lead` As we need to display same filters and groupby in both community and enterprise pipeline report search view, we have removed the search view `crm_opportunity_view_search` from enterprise so that we can use the community view there and both becomes the same view. So in this commit we have also added some filters and groupby to community version(`crm.crm_opportunity_report_view_search`) which was existed in enterprise search view (`crm_enterprise.crm_opportunity_view_search`) so that we dont miss any filters used in enterprise. The filter and groupby added are listed below: Filter: - inactive Groupby: - compaign - medium - source Apart from this, we have added groups `crm.group_use_lead` to the groupby filter `conversion_date`. Enterprise: odoo/enterprise/pull/18797 Upgrade: odoo/upgrade/pull/2937 TaskID-2343223 closes odoo/odoo#71796 Related: odoo/enterprise#18797 Related: odoo/upgrade#2937 Signed-off-by: Warnon Aurélien (awa) --- .../report/crm_opportunity_report_views.xml | 18 +++++++++++------- addons/crm/views/crm_team_views.xml | 2 +- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/addons/crm/report/crm_opportunity_report_views.xml b/addons/crm/report/crm_opportunity_report_views.xml index 8f5aa7f780a..42347272642 100644 --- a/addons/crm/report/crm_opportunity_report_views.xml +++ b/addons/crm/report/crm_opportunity_report_views.xml @@ -61,11 +61,11 @@ 32 - - - + + @@ -74,7 +74,7 @@ - + @@ -89,6 +89,7 @@ + @@ -96,9 +97,12 @@ + + + - + @@ -112,7 +116,7 @@ crm.lead graph,pivot,tree,form - {'search_default_opportunity': True, 'search_default_current': True} + {'search_default_filter_opportunity': True, 'search_default_current': True} { 'default_type': 'lead', - 'search_default_lead': True, + 'search_default_filter_lead': True, 'search_default_filter_create_date': 1, } { 'search_default_team_id': [active_id], 'tree_view_ref': 'crm.crm_case_tree_view_oppor', - 'search_default_opportunity': True, + 'search_default_filter_opportunity': True, 'search_default_filter_create_date': 1} [] Opportunities Analysis gives you an instant access to your opportunities with information such as the expected revenue, planned cost, missed deadlines or the number of interactions per opportunity. This report is mainly used by the sales manager in order to do the periodic review with the channels of the sales pipeline.