From 3aef77f16118a741e65dd55aa5a550bf6a458ce8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ant=C3=B4nio=20Neto?= Date: Tue, 28 May 2024 22:59:33 -0300 Subject: [PATCH] [REF] l10n_br_account_nfe: rename nfce contingency function --- l10n_br_account_nfe/models/document.py | 4 ++-- l10n_br_account_nfe/tests/test_nfce_contingency.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/l10n_br_account_nfe/models/document.py b/l10n_br_account_nfe/models/document.py index 1e70fe075d96..daadf9786e0f 100644 --- a/l10n_br_account_nfe/models/document.py +++ b/l10n_br_account_nfe/models/document.py @@ -157,8 +157,8 @@ def _check_fiscal_payment_mode(self): ) ) - def _process_document_in_contingency(self): - super()._process_document_in_contingency() + def _update_nfce_for_offline_contingency(self): + super()._update_nfce_for_offline_contingency() if self.move_ids: copy_invoice = self.move_ids[0].copy() diff --git a/l10n_br_account_nfe/tests/test_nfce_contingency.py b/l10n_br_account_nfe/tests/test_nfce_contingency.py index 07321e3e59ef..cfa0f812be87 100644 --- a/l10n_br_account_nfe/tests/test_nfce_contingency.py +++ b/l10n_br_account_nfe/tests/test_nfce_contingency.py @@ -63,6 +63,6 @@ def prepare_account_move_nfce(self): self.document_move_id.fiscal_document_id = self.document_id.id def test_nfce_contingencia(self): - self.document_id._process_document_in_contingency() + self.document_id._update_nfce_for_offline_contingency() self.assertIn(self.document_move_id, self.document_id.move_ids)