Skip to content

Commit

Permalink
[REF] l10n_br_account_nfe: rename nfce contingency function
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniospneto committed May 31, 2024
1 parent 57d9d97 commit 3aef77f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions l10n_br_account_nfe/models/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion l10n_br_account_nfe/tests/test_nfce_contingency.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 3aef77f

Please sign in to comment.