[FIX] purchase: add missing coma in sql query
authorXavier ALT <xal@openerp.com>
Tue, 13 Mar 2012 14:24:17 +0000 (15:24 +0100)
committerXavier ALT <xal@openerp.com>
Tue, 13 Mar 2012 14:24:17 +0000 (15:24 +0100)
bzr revid: xal@openerp.com-20120313142417-2nfjt2zw2hbrhl00

addons/purchase/report/purchase_report.py

index 8e724c2..e328c21 100644 (file)
@@ -99,7 +99,7 @@ class purchase_report(osv.osv):
                     extract(epoch from age(l.date_planned,s.date_order))/(24*60*60)::decimal(16,2) as delay_pass,
                     count(*) as nbr,
                     (l.price_unit*l.product_qty)::decimal(16,2) as price_total,
-                    avg(100.0 * (l.price_unit*l.product_qty) / NULLIF(t.standard_price*l.product_qty/u.factor*u2.factor, 0.0) / rcr.rate)::decimal(16,2) as negociation
+                    avg(100.0 * (l.price_unit*l.product_qty) / NULLIF(t.standard_price*l.product_qty/u.factor*u2.factor, 0.0) / rcr.rate)::decimal(16,2) as negociation,
 
                     sum(t.standard_price*l.product_qty/u.factor*u2.factor)::decimal(16,2) as price_standard,
                     (sum(l.product_qty*l.price_unit)/NULLIF(sum(l.product_qty/u.factor*u2.factor),0.0))::decimal(16,2) as price_average