From 6b7a10e4bf130697c76a50ee2ad881bf97c7f977 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Tue, 8 Mar 2011 17:40:37 +0100 Subject: [PATCH] [FIX] account: correct default unit price for supplier invoices (issue #4346) bzr revid: chs@openerp.com-20110308164037-iknvpeo079u68bo5 --- addons/account/invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/invoice.py b/addons/account/invoice.py index 34c7b24028b..9ef72204b60 100644 --- a/addons/account/invoice.py +++ b/addons/account/invoice.py @@ -1258,7 +1258,7 @@ class account_invoice_line(osv.osv): t = t - (p * l[2].get('quantity')) taxes = l[2].get('invoice_line_tax_id') if len(taxes[0]) >= 3 and taxes[0][2]: - taxes = tax_obj.browse(cr, uid, taxes[0][2]) + taxes = tax_obj.browse(cr, uid, list(taxes[0][2])) for tax in tax_obj.compute_all(cr, uid, taxes, p,l[2].get('quantity'), context.get('address_invoice_id', False), l[2].get('product_id', False), context.get('partner_id', False))['taxes']: t = t - tax['amount'] return t