From 39340d5f11b4ce7583fdfae8ad2f0a02093a0dd4 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 618bd8e045..f580dbca84 100644 --- a/currency.py +++ b/currency.py @@ -169,7 +169,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 = {}