[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:
@@ -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),
|
||||
|
||||
@@ -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">['&', ('date','<=', time.strftime('%%Y-12-31')), '&', ('date','>=',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>
|
||||
|
||||
Reference in New Issue
Block a user