[FIX] sale: use untaxed amount in report

Sales revenue report should not include sales taxes.
https://en.wikipedia.org/wiki/Revenue

opw-653674
This commit is contained in:
Nicolas Martinelli
2015-11-23 14:19:18 +01:00
parent cbfc9c9e20
commit e625d31ef9
2 changed files with 4 additions and 3 deletions
+1
View File
@@ -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),
+3 -3
View File
@@ -9,7 +9,7 @@
<pivot string="Sales Analysis" disable_linking="True">
<field name="team_id" type="col"/>
<field name="date" interval="month" type="row"/>
<field name="price_total" type="measure"/>
<field name="price_subtotal" type="measure"/>
</pivot>
</field>
</record>
@@ -20,7 +20,7 @@
<field name="arch" type="xml">
<graph string="Sales Analysis">
<field name="date" type="row"/>
<field name="price_total" type="measure"/>
<field name="price_subtotal" type="measure"/>
</graph>
</field>
</record>
@@ -31,7 +31,7 @@
<field name="model_id">sale.report</field>
<field name="domain">['&amp;', ('date','&lt;=', time.strftime('%%Y-12-31')), '&amp;', ('date','&gt;=',time.strftime('%%Y-01-01')), ('state','not in',('cancel',))]</field>
<field name="user_id" eval="False"/>
<field name="context">{'group_by': ['state'], 'measures': ['price_total']}</field>
<field name="context">{'group_by': ['state'], 'measures': ['price_subtotal']}</field>
</record>
<record id="filter_sale_report_salespersons" model="ir.filters">
<field name="name">By Salespersons</field>