[FIX] Account: Account tax if type=None

bzr revid: mra@mra-laptop-20101008051756-ds1bewpn9ltdas03
This commit is contained in:
Mustufa Rangwala 2010-10-08 10:47:56 +05:30
parent 669e8176a4
commit cf0cddde12
1 changed files with 1 additions and 1 deletions

View File

@ -1815,7 +1815,7 @@ class account_tax(osv.osv):
data['amount'] = cur_price_unit - reduce(lambda x,y: y.get('amount',0.0)+x, res, 0.0)
data['balance'] = cur_price_unit
amount2 = data['amount']
amount2 = data.get('amount', 0.0)
if len(tax.child_ids):
if tax.child_depend:
latest = res.pop()