From c0166d45208f5ad1e253ffc057dedbd5b86f230f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 28 Jun 2008 21:11:10 +0200 Subject: [PATCH] Use supplier_ tax property for supplier invoices --- invoice.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/invoice.py b/invoice.py index b55c638b4f..a00063d6ec 100644 --- a/invoice.py +++ b/invoice.py @@ -1197,9 +1197,10 @@ class InvoiceLine(OSV): res['taxes'] = [] for tax in product.supplier_taxes: if party: - if tax.group.code in party_obj._columns \ - and party[tax.group.code]: - res['taxes'].append(party[tax.group.code].id) + if 'supplier_' + tax.group.code in party_obj._columns \ + and party['supplier_' + tax.group.code]: + res['taxes'].append( + party['supplier_' + tax.group.code].id) continue res['taxes'].append(tax.id) else: