From 5b4f3944f6d02dc842d97bc00c31af74fc5cc68b Mon Sep 17 00:00:00 2001 From: "olt@tinyerp.com" <> Date: Mon, 4 Oct 2010 13:30:10 +0200 Subject: [PATCH] [IMP] report_intrastat: 'intrastat' report now uses decimal.precision bzr revid: olt@tinyerp.com-20101004113010-dj6i5kvfce5jnt1z --- addons/report_intrastat/report_intrastat.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/report_intrastat/report_intrastat.py b/addons/report_intrastat/report_intrastat.py index 90c2884cceb..a77c4f5d389 100644 --- a/addons/report_intrastat/report_intrastat.py +++ b/addons/report_intrastat/report_intrastat.py @@ -21,6 +21,7 @@ from osv import osv, fields from tools.sql import drop_view_if_exists +from decimal_precision import decimal_precision as dp class res_country(osv.osv): @@ -69,7 +70,7 @@ class report_intrastat(osv.osv): 'code': fields.char('Country code', size=2, readonly=True), 'intrastat_id': fields.many2one('report.intrastat.code', 'Intrastat code', readonly=True), 'weight': fields.float('Weight', readonly=True), - 'value': fields.float('Value', readonly=True), + 'value': fields.float('Value', readonly=True, digits_compute=dp.get_precision('Account')), 'type': fields.selection([('import', 'Import'), ('export', 'Export')], 'Type'), 'currency_id': fields.many2one('res.currency', "Currency", readonly=True), }