[FIX] improve rounding at invoice subtotal field--fixes=lp:977300
bzr revid: rmu@tinyerp.com-20120501061412-on9rz3lkbm7oqad3
This commit is contained in:
parent
e9273066a9
commit
8a377a190d
|
@ -29,6 +29,7 @@ import pooler
|
|||
from osv import fields, osv
|
||||
import decimal_precision as dp
|
||||
from tools.translate import _
|
||||
from tools import float_round
|
||||
|
||||
def check_cycle(self, cr, uid, ids, context=None):
|
||||
""" climbs the ``self._table.parent_id`` chains for 100 levels or
|
||||
|
@ -2069,7 +2070,7 @@ class account_tax(osv.osv):
|
|||
}
|
||||
"""
|
||||
precision = self.pool.get('decimal.precision').precision_get(cr, uid, 'Account')
|
||||
totalin = totalex = round(price_unit * quantity, precision)
|
||||
totalin = totalex = float_round(price_unit * quantity, precision)
|
||||
tin = []
|
||||
tex = []
|
||||
for tax in taxes:
|
||||
|
|
Loading…
Reference in New Issue