Skip to content

Commit

Permalink
Merge PR #3750 into 17.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Oct 8, 2024
2 parents 4f7a1ec + 95be6b8 commit 36feec5
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions l10n_es_aeat_mod349/tests/test_l10n_es_aeat_mod349.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@ class TestL10nEsAeatMod349Base(TestL10nEsAeatModBase):
"P_IVA21_IC_BC//2": (150, 0),
}

@classmethod
def setUpClass(cls):
super().setUpClass()
# Compatibility with account_edi_ubl_cii
# It is necessary to set the value of company_registry so that if we define
# as country_id=BE the tests do not fail.
cls.customer.write({"company_registry": "0411905847"})

@classmethod
def _invoice_refund(cls, invoice, dt, price_unit=None):
_logger.debug(
Expand Down Expand Up @@ -407,13 +415,8 @@ def test_mod349_errors(self):
)
self.assertTrue(partner_record.partner_record_ok)
# Reset vat and country
# Peppol eas is set so peppol check does not fail
self.customer.write(
{
"vat": "BE0411905847",
"country_id": self.env.ref("base.be").id,
"peppol_eas": "9925",
}
{"vat": "BE0411905847", "country_id": self.env.ref("base.be").id}
)
model349_errors.button_recalculate()
partner_record = model349_errors.partner_record_ids.filtered(
Expand Down

0 comments on commit 36feec5

Please sign in to comment.