From 4ffe539984f1b9068fadae1ee753003d6127ef45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 29 Jul 2013 10:31:28 +0200 Subject: [PATCH] get_rate must always return a Decimal or int as value issue3311 review987002 --- currency.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/currency.py b/currency.py index e2a1ff9dea..9bd233de38 100644 --- a/currency.py +++ b/currency.py @@ -175,7 +175,7 @@ class Currency(ModelSQL, ModelView): if rates: res[currency.id] = rates[0].id else: - res[currency.id] = 0.0 + res[currency.id] = 0 rate_ids = [x for x in res.values() if x] rates = Rate.browse(rate_ids) id2rate = {}