[MERGE] sale: Removed average price from sql, columns and tree views in report sales analysis

bzr revid: mra@mra-laptop-20101222111352-gpo19k4hsquhpl82
This commit is contained in:
Mustufa Rangwala
2010-12-22 16:43:52 +05:30
2 changed files with 0 additions and 4 deletions
-3
View File
@@ -47,7 +47,6 @@ class sale_report(osv.osv):
'user_id': fields.many2one('res.users', 'Salesman', readonly=True),
'price_total': fields.float('Total Price', readonly=True),
'delay': fields.float('Commitment Delay', digits=(16,2), readonly=True),
'price_average': fields.float('Average Price', readonly=True,group_operator="avg"),
'categ_id': fields.many2one('product.category','Category of Product', readonly=True),
'nbr': fields.integer('# of Lines', readonly=True),
'state': fields.selection([
@@ -98,7 +97,6 @@ class sale_report(osv.osv):
end) as uom_name,
sum(l.product_uom_qty/u.factor) as product_uom_qty,
sum(l.product_uom_qty*l.price_unit) as price_total,
(sum(l.product_uom_qty*l.price_unit)/sum(l.product_uom_qty/u.factor)*count(l.product_id))::decimal(16,2) as price_average,
pt.categ_id, l.order_id
from
sale_order_line l
@@ -111,7 +109,6 @@ class sale_report(osv.osv):
el.uom_name,
el.product_uom_qty,
el.price_total,
el.price_average,
el.categ_id,
el.order_id,
s.date_order,
-1
View File
@@ -23,7 +23,6 @@
<field name="product_uom_qty" sum="# of Qty"/>
<field name="shipped_qty_1" sum="Shipped Qty"/>
<field name="uom_name" invisible="not context.get('set_visible',False)"/>
<field name="price_average" sum="Average Price"/>
<field name="price_total" sum="Total Price"/>
<field name="delay" sum="Commitment Delay"/>
<field name="state" invisible="1"/>