Skip to content

Commit

Permalink
[REF] l10n_br_account_nfe: adapt to simpler hook
Browse files Browse the repository at this point in the history
  • Loading branch information
rvalyi committed Oct 18, 2024
1 parent bf609fe commit 2ee2b3b
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions l10n_br_account_nfe/tests/test_nfce_contingency.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,13 @@

from odoo.tests import TransactionCase

from odoo.addons.spec_driven_model import hooks


class TestAccountNFCeContingency(TransactionCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
# this hook is required to test l10n_br_account_nfe alone:
hooks.register_hook(
cls.env,
"l10n_br_nfe",
"odoo.addons.l10n_br_nfe_spec.models.v4_0.leiaute_nfe_v4_00",
)
cls.env["spec.mixin.nfe"]._register_hook()
cls.document_id = cls.env.ref("l10n_br_nfe.demo_nfce_same_state")
cls.prepare_account_move_nfce()

Expand Down

0 comments on commit 2ee2b3b

Please sign in to comment.