From 8ab015c94fd1fd85437a1b352bfc269c15b98db3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 11 Nov 2008 22:37:05 +0100 Subject: [PATCH] Return Decimal value for default rounding for issue524 --- currency.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/currency.py b/currency.py index f239fb17e4..b4ed2a15b4 100644 --- a/currency.py +++ b/currency.py @@ -48,7 +48,7 @@ class Currency(OSV): return True def default_rounding(self, cursor, user, context=None): - return 0.01 + return Decimal('0.01') def default_digits(self, cursor, user, context=None): return 2