=== modified file 'account/invoice.py' --- account/invoice.py 2010-05-18 09:45:30 +0000 +++ account/invoice.py 2010-06-23 13:15:38 +0000 @@ -1004,9 +1004,8 @@ if line.invoice_id: res[line.id] = line.price_unit * line.quantity * (1-(line.discount or 0.0)/100.0) cur = line.invoice_id.currency_id - res[line.id] = cur_obj.round(cr, uid, cur, res[line.id]) else: - res[line.id] = round(line.price_unit * line.quantity * (1-(line.discount or 0.0)/100.0),int(config['price_accuracy'])) + res[line.id] = line.price_unit * line.quantity * (1-(line.discount or 0.0)/100.0),int(config['price_accuracy']) return res @@ -1266,9 +1265,8 @@ tax_grouped[key]['base'] += val['base'] tax_grouped[key]['base_amount'] += val['base_amount'] tax_grouped[key]['tax_amount'] += val['tax_amount'] - + for t in tax_grouped.values(): - t['amount'] = cur_obj.round(cr, uid, cur, t['amount']) t['base_amount'] = cur_obj.round(cr, uid, cur, t['base_amount']) t['tax_amount'] = cur_obj.round(cr, uid, cur, t['tax_amount']) return tax_grouped