From e9638fd3aecb29d3b7817ed92d188f6dee659e04 Mon Sep 17 00:00:00 2001 From: mir-odoo Date: Mon, 17 Aug 2020 05:50:23 +0000 Subject: [PATCH] [IMP] crm,purchase: Improve the reporting menu Pupose of the task is, to set up a dedicated 'dashboard' reporting menu item, and make the graph view the default the other 'leads' and 'opportunities' reporting menus. So in this commit, change the default view graph in normal report (except dashbaord menu) and each menu should be submenu of reporting menu Also apply default filter for lead reporting menu TaskID: 2311392 Related Enterprise: https://github.com/odoo/enterprise/pull/12419 closes odoo/odoo#55598 Closes: #55598 Related: odoo/enterprise#12419 Signed-off-by: Yannick Tivisse (yti) --- addons/crm/report/crm_opportunity_report_views.xml | 10 +++++++--- addons/purchase/report/purchase_report_views.xml | 3 ++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/addons/crm/report/crm_opportunity_report_views.xml b/addons/crm/report/crm_opportunity_report_views.xml index 85a4012e58c..52540651358 100644 --- a/addons/crm/report/crm_opportunity_report_views.xml +++ b/addons/crm/report/crm_opportunity_report_views.xml @@ -110,7 +110,7 @@ Pipeline Analysis crm.lead - pivot,graph,tree,form + graph,pivot,tree,form {'search_default_opportunity': True, 'search_default_current': True} Leads Analysis crm.lead - pivot,graph,tree,form + graph,pivot,tree - {'search_default_current': True, 'search_default_archived': True} + { + 'default_type': 'lead', + 'search_default_lead': True, + 'search_default_filter_create_date': 1, + } current - + +