From e625d31ef90979400bc31c69c84e80e7de2d85e5 Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Mon, 23 Nov 2015 11:27:05 +0100 Subject: [PATCH] [FIX] sale: use untaxed amount in report Sales revenue report should not include sales taxes. https://en.wikipedia.org/wiki/Revenue opw-653674 --- addons/sale/report/sale_report.py | 1 + addons/sale/report/sale_report_view.xml | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/addons/sale/report/sale_report.py b/addons/sale/report/sale_report.py index 9fd96ba91b5..68ec0b37b02 100644 --- a/addons/sale/report/sale_report.py +++ b/addons/sale/report/sale_report.py @@ -22,6 +22,7 @@ class sale_report(osv.osv): 'company_id': fields.many2one('res.company', 'Company', readonly=True), 'user_id': fields.many2one('res.users', 'Salesperson', readonly=True), 'price_total': fields.float('Total Price', readonly=True), + 'price_subtotal': fields.float('Untaxed Total Price', readonly=True), 'product_tmpl_id': fields.many2one('product.template', 'Product Template', readonly=True), 'categ_id': fields.many2one('product.category','Product Category', readonly=True), 'nbr': fields.integer('# of Lines', readonly=True), diff --git a/addons/sale/report/sale_report_view.xml b/addons/sale/report/sale_report_view.xml index 7e26b9fb9d5..3f165b219e4 100644 --- a/addons/sale/report/sale_report_view.xml +++ b/addons/sale/report/sale_report_view.xml @@ -9,7 +9,7 @@ - + @@ -20,7 +20,7 @@ - + @@ -31,7 +31,7 @@ sale.report ['&', ('date','<=', time.strftime('%%Y-12-31')), '&', ('date','>=',time.strftime('%%Y-01-01')), ('state','not in',('cancel',))] - {'group_by': ['state'], 'measures': ['price_total']} + {'group_by': ['state'], 'measures': ['price_subtotal']} By Salespersons