From ed99a00b562e40a13df0d5bb675f492feaa3e8ad Mon Sep 17 00:00:00 2001 From: "sbh (Open ERP)" Date: Thu, 23 Sep 2010 12:40:44 +0530 Subject: [PATCH] [IMP] stock:set decimal precision on postgres report bzr revid: sbh@tinyerp.com-20100923071044-qdi1a5xafb74bh69 --- addons/stock/report/report_stock_move.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/stock/report/report_stock_move.py b/addons/stock/report/report_stock_move.py index 80ed559cb05..1651607a922 100644 --- a/addons/stock/report/report_stock_move.py +++ b/addons/stock/report/report_stock_move.py @@ -153,8 +153,8 @@ create or replace view report_stock_inventory as ( m.product_id as product_id, l.usage as location_type, m.company_id, m.state as state, m.prodlot_id as prodlot_id, - sum(-m.product_qty*u.factor)::decimal(16,2) as product_qty, - sum(-pt.standard_price * m.product_qty * u.factor)::decimal(16,2) as value + sum(-m.product_qty*u.factor)::decimal as product_qty, + sum(-pt.standard_price * m.product_qty * u.factor)::decimal as value from stock_move m left join stock_picking p on (m.picking_id=p.id) @@ -172,8 +172,8 @@ create or replace view report_stock_inventory as ( m.product_id as product_id, l.usage as location_type, m.company_id, m.state as state, m.prodlot_id as prodlot_id, - sum(m.product_qty*u.factor)::decimal(16,2) as product_qty, - sum(pt.standard_price * m.product_qty * u.factor)::decimal(16,2) as value + sum(m.product_qty*u.factor)::decimal as product_qty, + sum(pt.standard_price * m.product_qty * u.factor)::decimal as value from stock_move m left join stock_picking p on (m.picking_id=p.id)