Skip to content

Commit

Permalink
[REF] l10n_br_cnpj_search: CNPJ->vat
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
rvalyi committed Nov 3, 2024
1 parent 1d96987 commit 017c1f2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions l10n_br_cnpj_search/tests/test_receitaws.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def test_receita_ws_fail(self):
invalido = self.model.create(
{"name": "invalido", "cnpj_cpf": "00000000000000"}
)
invalido._onchange_cnpj_cpf()
invalido._onchange_vat()
action_wizard = invalido.action_open_cnpj_search_wizard()
wizard_context = action_wizard.get("context")
self.env["partner.search.wizard"].with_context(**wizard_context).create({})
Expand All @@ -71,7 +71,7 @@ def test_receita_ws_multiple_phones(self):
return_value=self.mocked_response_ws_2,
):
isla = self.model.create({"name": "Isla", "cnpj_cpf": "92.666.056/0001-06"})
isla._onchange_cnpj_cpf()
isla._onchange_vat()

action_wizard = isla.action_open_cnpj_search_wizard()
wizard_context = action_wizard.get("context")
Expand Down
8 changes: 4 additions & 4 deletions l10n_br_cnpj_search/tests/test_serpro.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def test_serpro_basica(self):
dummy_basica = self.model.create(
{"name": "Dummy Basica", "cnpj_cpf": "34.238.864/0001-68"}
)
dummy_basica._onchange_cnpj_cpf()
dummy_basica._onchange_vat()

action_wizard = dummy_basica.action_open_cnpj_search_wizard()
wizard_context = action_wizard.get("context")
Expand Down Expand Up @@ -65,7 +65,7 @@ def test_serpro_not_found(self):
invalid = self.model.create(
{"name": "invalid", "cnpj_cpf": "44.356.113/0001-08"}
)
invalid._onchange_cnpj_cpf()
invalid._onchange_vat()

with self.assertRaises(ValidationError):
action_wizard = invalid.action_open_cnpj_search_wizard()
Expand Down Expand Up @@ -125,7 +125,7 @@ def test_serpro_empresa(self):
{"name": "Dummy Empresa", "cnpj_cpf": "34.238.864/0002-49"}
)

dummy_empresa._onchange_cnpj_cpf()
dummy_empresa._onchange_vat()
action_wizard = dummy_empresa.action_open_cnpj_search_wizard()
wizard_context = action_wizard.get("context")
wizard = (
Expand Down Expand Up @@ -160,7 +160,7 @@ def test_serpro_qsa(self):
{"name": "Dummy QSA", "cnpj_cpf": "34.238.864/0001-68"}
)

dummy_qsa._onchange_cnpj_cpf()
dummy_qsa._onchange_vat()
action_wizard = dummy_qsa.action_open_cnpj_search_wizard()
wizard_context = action_wizard.get("context")
wizard = (
Expand Down

0 comments on commit 017c1f2

Please sign in to comment.