get_rate must always return a Decimal or int as value

issue3311
review987002
This commit is contained in:
Cédric Krier committed 2013-07-29 10:31:28 +02:00
1 parent 4b070ef1b1
commit 4ffe539984
1 file changed
+1 -1
+1 -1
View File
@@ -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 = {}