[FIX] account: using float_round instead of native python round method, to apply...
authorDenis Ledoux <dle@openerp.com>
Wed, 12 Mar 2014 12:09:04 +0000 (13:09 +0100)
committerDenis Ledoux <dle@openerp.com>
Wed, 12 Mar 2014 12:09:04 +0000 (13:09 +0100)
bzr revid: dle@openerp.com-20140312120904-ucixsl1szfi1q0ea

addons/account/account.py

index 4ccdac5..c45c337 100644 (file)
@@ -30,7 +30,7 @@ from openerp import SUPERUSER_ID
 from openerp import pooler, tools
 from openerp.osv import fields, osv, expression
 from openerp.tools.translate import _
-from openerp.tools.float_utils import float_round
+from openerp.tools.float_utils import float_round as round
 
 import openerp.addons.decimal_precision as dp
 
@@ -2155,7 +2155,7 @@ class account_tax(osv.osv):
         tax_compute_precision = precision
         if taxes and taxes[0].company_id.tax_calculation_rounding_method == 'round_globally':
             tax_compute_precision += 5
-        totalin = totalex = float_round(price_unit * quantity, precision)
+        totalin = totalex = round(price_unit * quantity, precision)
         tin = []
         tex = []
         for tax in taxes: