[FIX] Currency : Rounding improved
bzr revid: jvo@tinyerp.com-20091221113116-a8kf0v96ln9s5dgw
This commit is contained in:
committed by
Jay (Open ERP)
parent
768afdb598
commit
0bec8a95fc
@@ -67,7 +67,7 @@ class res_currency(osv.osv):
|
||||
if currency.rounding == 0:
|
||||
return 0.0
|
||||
else:
|
||||
return round(amount / currency.rounding) * currency.rounding
|
||||
return round(amount / currency.rounding,6) * currency.rounding
|
||||
|
||||
def is_zero(self, cr, uid, currency, amount):
|
||||
return abs(self.round(cr, uid, currency, amount)) < currency.rounding
|
||||
|
||||
Reference in New Issue
Block a user