merge
authorFabien Pinckaers <fp@tinyerp.com>
Sun, 1 Nov 2009 07:28:28 +0000 (08:28 +0100)
committerFabien Pinckaers <fp@tinyerp.com>
Sun, 1 Nov 2009 07:28:28 +0000 (08:28 +0100)
bzr revid: fp@tinyerp.com-20091101072828-7t81kwm0mgvx9c1a

bin/addons/base/res/res_currency.py

index 0ce4cbb..7033abe 100644 (file)
@@ -26,7 +26,6 @@ import ir
 
 from tools.misc import currency
 from tools.translate import _
-from tools import config
 
 import mx.DateTime
 from mx.DateTime import RelativeDateTime, now, DateTime, localtime
@@ -68,7 +67,7 @@ class res_currency(osv.osv):
         if currency.rounding == 0:
             return 0.0
         else:
-            return round(amount / currency.rounding, int(config['price_accuracy'])) * currency.rounding
+            return round(amount / currency.rounding) * currency.rounding
 
     def is_zero(self, cr, uid, currency, amount):
         return abs(self.round(cr, uid, currency, amount)) < currency.rounding