From 2719b2100de1fd7f86cee29c9615c84dd210a007 Mon Sep 17 00:00:00 2001 From: nikj-odoo Date: Thu, 10 Aug 2023 15:22:01 +0530 Subject: [PATCH] [IMP] sale: add improvements in fields & reporting in sale app Improve following feature : - visible if someone signed the quotation and it should be readonly on the quotation. - make optional field "customer reference" in list view. - make optional field "Expiration" in list view. - add sub-menu under the reporting menu: 1. "Sales" :- redirect to the current report. 2. "Salespeople" :- redirect to the current report but grouped by salesperson. 3."products":- redirect to the current report with group by produts. 4."Customer":- redirect to the report with group by customers. task-3369999 closes odoo/odoo#133780 Related: odoo/enterprise#46641 Signed-off-by: Victor Feyens (vfe) --- addons/sale/report/sale_report_views.xml | 55 ++++++++++++++++++++++++ addons/sale/views/sale_menus.xml | 22 +++++++++- addons/sale/views/sale_order_views.xml | 6 ++- 3 files changed, 79 insertions(+), 4 deletions(-) diff --git a/addons/sale/report/sale_report_views.xml b/addons/sale/report/sale_report_views.xml index 03dfc64fbef..372217183f4 100644 --- a/addons/sale/report/sale_report_views.xml +++ b/addons/sale/report/sale_report_views.xml @@ -24,6 +24,31 @@ + + sale.report.graph.pie + sale.report + primary + + + + pie + + + + + + sale.report.graph.bar + sale.report + primary + + + + bar + DESC + + + + sale.report.view.tree sale.report @@ -105,6 +130,36 @@ This report performs analysis on your quotations and sales orders. Analysis check your sales revenues and sort it by different group criteria (salesman, partner, product, etc.) Use this report to perform analysis on sales not having invoiced yet. If you want to analyse your turnover, you should use the Invoice Analysis report in the Accounting application. + + Sales Analysis By Salespersons + sale.report + graph,pivot + + + {'search_default_User': 1, 'group_by': 'user_id', 'search_default_filter_order_date': 1} + This report performs analysis on your quotations and sales orders. Analysis check your sales revenues and sort it by different group criteria (salesman, partner, product, etc.) Use this report to perform analysis on sales not having invoiced yet. If you want to analyse your turnover, you should use the Invoice Analysis report in the Accounting application. + + + + Sales Analysis Products + sale.report + graph,pivot + + + {'search_default_Sales': 1, 'search_default_Product': 1, 'group_by_no_leaf':1, 'group_by': 'product_id', 'search_default_filter_order_date': 1} + This report performs analysis on your quotations and sales orders. Analysis check your sales revenues and sort it by different group criteria (salesman, partner, product, etc.) Use this report to perform analysis on sales not having invoiced yet. If you want to analyse your turnover, you should use the Invoice Analysis report in the Accounting application. + + + + Sales Analysis By Customers + sale.report + graph,pivot + + + {'search_default_Customer': 1, 'group_by': 'partner_id', 'search_default_filter_order_date': 1} + This report performs analysis on your quotations and sales orders. Analysis check your sales revenues and sort it by different group criteria (salesman, partner, product, etc.) Use this report to perform analysis on sales not having invoiced yet. If you want to analyse your turnover, you should use the Invoice Analysis report in the Accounting application. + + Sales Analysis sale.report diff --git a/addons/sale/views/sale_menus.xml b/addons/sale/views/sale_menus.xml index f0acacf5957..3b68bdd2bec 100644 --- a/addons/sale/views/sale_menus.xml +++ b/addons/sale/views/sale_menus.xml @@ -72,9 +72,27 @@ + sequence="40"> + + + + + + + + + @@ -731,8 +733,8 @@ - - + +