[MERGE] account/account.py: use of tools.float_utils float_round() method instead of round(). lp: 977300
bzr revid: qdp-launchpad@openerp.com-20120725142836-mtts1wub192861pw
This commit is contained in:
commit
0bc828b75e
|
@ -29,6 +29,8 @@ import pooler
|
||||||
from osv import fields, osv
|
from osv import fields, osv
|
||||||
import decimal_precision as dp
|
import decimal_precision as dp
|
||||||
from tools.translate import _
|
from tools.translate import _
|
||||||
|
from tools.float_utils import float_round
|
||||||
|
|
||||||
_logger = logging.getLogger(__name__)
|
_logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
def check_cycle(self, cr, uid, ids, context=None):
|
def check_cycle(self, cr, uid, ids, context=None):
|
||||||
|
@ -2090,7 +2092,7 @@ class account_tax(osv.osv):
|
||||||
tax_compute_precision = precision
|
tax_compute_precision = precision
|
||||||
if taxes and taxes[0].company_id.tax_calculation_rounding_method == 'round_globally':
|
if taxes and taxes[0].company_id.tax_calculation_rounding_method == 'round_globally':
|
||||||
tax_compute_precision += 5
|
tax_compute_precision += 5
|
||||||
totalin = totalex = round(price_unit * quantity, precision)
|
totalin = totalex = float_round(price_unit * quantity, precision)
|
||||||
tin = []
|
tin = []
|
||||||
tex = []
|
tex = []
|
||||||
for tax in taxes:
|
for tax in taxes:
|
||||||
|
|
Loading…
Reference in New Issue