Tax rule apply method return a list of tax ids

This commit is contained in:
Cédric Krier committed 2012-05-29 17:24:13 +02:00
1 parent e8c2a7fea0
commit 4fd8e5913a
1 file changed
+3 -3
+3 -3
View File
@@ -721,10 +721,10 @@ class CreatePurchase(Wizard):
for tax in request.product.supplier_taxes_used:
if request.party and request.party.supplier_tax_rule:
pattern = self._get_tax_rule_pattern(request)
tax_id = tax_rule_obj.apply(request.party.supplier_tax_rule,
tax_ids = tax_rule_obj.apply(request.party.supplier_tax_rule,
tax, pattern)
if tax_id:
taxes.append(tax_id)
if tax_ids:
taxes.extend(tax_ids)
continue
taxes.append(tax.id)
line['taxes'] = [('add', taxes)]