get_rate must always return a Decimal or int as value
issue3311 review987002
This commit is contained in:
1 parent
4b070ef1b1
commit
4ffe539984
1 file changed
+1
-1
+1
-1
@@ -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 = {}
|
||||
|
||||
Reference in new issue
Block a user