From ec228b54882b06331eefa1afa27ce5b060b679bb 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 (transplanted from c816c3b544a82bfa339d93f6e41d5e6e35e084bb) --- currency.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/currency.py b/currency.py index fbe9d7af7a..09260388e6 100644 --- a/currency.py +++ b/currency.py @@ -149,7 +149,7 @@ class Currency(ModelSQL, ModelView): if rate_ids: res[currency_id] = rate_ids[0] else: - res[currency_id] = 0.0 + res[currency_id] = 0 rate_ids = [x for x in res.values() if x] rates = rate_obj.browse(rate_ids) id2rate = {}