Skip to content

Commit

Permalink
[ADD]l10n_do_accounting: adding else to _create_l10n_do_invoice to ad…
Browse files Browse the repository at this point in the history
…d specific taxes
  • Loading branch information
GleidyEspinal committed Jun 24, 2024
1 parent 7035412 commit e72c938
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions l10n_do_accounting/tests/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,5 +155,11 @@ def _create_l10n_do_invoice(self, data=None, invoice_type="out_invoice"):
)
for tax in taxes:
invoice_line_form.tax_ids.add(tax)
else:
invoice_line_form.tax_ids.clear()
for tax in line.get("taxes", []):
tax_id = self.env['account.tax'].browse(tax[1])
invoice_line_form.tax_ids.add(tax_id)

invoice = invoice_form.save()
return invoice

0 comments on commit e72c938

Please sign in to comment.