Fix call get on browse record for issue160

This commit is contained in:
Cédric Krier
2008-07-01 12:21:37 +02:00
parent 521a78df29
commit 87d7a053c8
+3 -2
View File
@@ -565,9 +565,10 @@ class PurchaseLine(OSV):
res['taxes'] = []
for tax in product.supplier_taxes:
if party:
if party.get('supplier_' + tax.group.code):
if 'supplier_' + tax.group.code in party_obj._columns \
and party['supplier_' + tax.group.code]:
res['taxes'].append(
party.get('supplier_' + tax.group.code).id)
party['supplier_' + tax.group.code].id)
continue
res['taxes'].append(tax.id)