Tax rule apply method return a list of tax ids
(transplanted from 228576b60e223e126580b46020fa913e7b01a6c8)
This commit is contained in:
1 parent
c481484410
commit
3976fb080f
1 file changed
+3
-3
+3
-3
@@ -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)]
|
||||
|
||||
Reference in new issue
Block a user