Skip to content

Commit

Permalink
[FIX]l10n-dominicana: fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
GleidyEspinal committed Jun 25, 2024
1 parent e72c938 commit 16f9b40
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion l10n_do_accounting/tests/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def _create_l10n_do_invoice(self, data=None, invoice_type="out_invoice"):
)
for tax in taxes:
invoice_line_form.tax_ids.add(tax)
else:
elif line.get("taxes"):
invoice_line_form.tax_ids.clear()
for tax in line.get("taxes", []):
tax_id = self.env['account.tax'].browse(tax[1])
Expand Down
2 changes: 2 additions & 0 deletions l10n_do_accounting/tests/test_account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,7 @@ def test_006_invoice_electronic_stamp(self):
}
)
sale_invoice_1_id.with_context(l10n_do_active_test=True)._post()
self.maxDiff = None
self.assertEqual(sale_invoice_1_id.l10n_do_electronic_stamp, stamp)

def test_007_unique_sequence_number(self):
Expand Down Expand Up @@ -718,6 +719,7 @@ def test_011_get_l10n_do_line_amounts(self):
"document_number": "B0100000001",
}
)
self.maxDiff = None
self.assertDictEqual(
invoice_1._get_l10n_do_amounts(),
{
Expand Down

0 comments on commit 16f9b40

Please sign in to comment.