From 6ba1955ac1d0e009b238908d0f5be2adf8f44220 Mon Sep 17 00:00:00 2001 From: "Jay (Open ERP)" Date: Fri, 22 Jan 2010 19:47:46 +0530 Subject: [PATCH] [REF/FIX] Account : Minor corrections related to _unit_compute_inv() lp bug: https://launchpad.net/bugs/511198 fixed bzr revid: jvo@tinyerp.com-20100122141746-efo23pejj51a4nw5 --- addons/account/account.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/account/account.py b/addons/account/account.py index 4e29bb1901f..af9459082cd 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -1478,8 +1478,8 @@ class account_tax(osv.osv): exec tax.python_compute_inv in localdict amount = localdict['result'] elif tax.type=='balance': - data['amount'] = cur_price_unit - reduce(lambda x,y: y.get('amount',0.0)+x, res, 0.0) - data['balance'] = cur_price_unit + amount = cur_price_unit - reduce(lambda x,y: y.get('amount',0.0)+x, res, 0.0) +# data['balance'] = cur_price_unit if tax.include_base_amount: