From 6f121f968dd33207c1ccaa2a44a6e1e586d6f95a Mon Sep 17 00:00:00 2001 From: "JMA(OpenERP)" <> Date: Thu, 7 Oct 2010 14:33:42 +0530 Subject: [PATCH] Account : Corrected the rounding of base of account.invoice.tax lp bug: https://launchpad.net/bugs/591662 fixed bzr revid: jvo@tinyerp.com-20101007090342-tltei8skbhp7101u --- addons/account/invoice.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/account/invoice.py b/addons/account/invoice.py index 777955d5a8e..2e81c7b054f 100644 --- a/addons/account/invoice.py +++ b/addons/account/invoice.py @@ -1622,6 +1622,7 @@ class account_invoice_tax(osv.osv): tax_grouped[key]['tax_amount'] += val['tax_amount'] for t in tax_grouped.values(): + t['base'] = cur_obj.round(cr, uid, cur, t['base']) 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'])