From 16f9b406dc6aac9ebc1032630074fef9110ebdf3 Mon Sep 17 00:00:00 2001 From: Gleidy Espinal <1104225@est.intec.edu.do> Date: Tue, 25 Jun 2024 11:24:43 -0400 Subject: [PATCH] [FIX]l10n-dominicana: fixing tests --- l10n_do_accounting/tests/common.py | 2 +- l10n_do_accounting/tests/test_account_move.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/l10n_do_accounting/tests/common.py b/l10n_do_accounting/tests/common.py index 92962d87b..bb50dd747 100644 --- a/l10n_do_accounting/tests/common.py +++ b/l10n_do_accounting/tests/common.py @@ -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]) diff --git a/l10n_do_accounting/tests/test_account_move.py b/l10n_do_accounting/tests/test_account_move.py index 6191eda4b..c9db9b4b6 100644 --- a/l10n_do_accounting/tests/test_account_move.py +++ b/l10n_do_accounting/tests/test_account_move.py @@ -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): @@ -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(), {