From fe758ac69a90d7d858a329ac0ba2a8b20bb87106 Mon Sep 17 00:00:00 2001 From: Noe Antoine Date: Fri, 21 Jan 2022 12:41:17 +0000 Subject: [PATCH] [IMP] website_sale_slides: use total amount in course sales reporting MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Before, there was a mismatch between the course's sales smart button and the reporting it leads to. The amount shown is the total, taxed, amount. Once in the reporting, the default measure is the subtotal, untaxed. This commit harmonizes both as well as course revenue reporting by replacing the current default measure (price_subtotal) by the total amount. This measure price_total is used in both graph and pivot views. Task-2718756 closes odoo/odoo#83184 Signed-off-by: Warnon Aurélien (awa) --- addons/website_sale_slides/report/sale_report_views.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/website_sale_slides/report/sale_report_views.xml b/addons/website_sale_slides/report/sale_report_views.xml index 974e6b2fe27..66f552f8798 100644 --- a/addons/website_sale_slides/report/sale_report_views.xml +++ b/addons/website_sale_slides/report/sale_report_views.xml @@ -6,7 +6,7 @@ - + @@ -17,7 +17,7 @@ ir.actions.act_window graph,pivot [("product_id.channel_ids", "!=", False)] - {'group_by': ['date', 'product_id']} + {'group_by': ['date', 'product_id'], 'pivot_measures': ['price_total']}