Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[12.0][IMP] l10n_br_nfse_issnet: imp rejected event #1310

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions l10n_br_nfse_issnet/models/l10n_br_fiscal_document.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
from odoo.addons.l10n_br_fiscal.constants.fiscal import (
MODELO_FISCAL_NFSE,
SITUACAO_EDOC_AUTORIZADA,
SITUACAO_EDOC_REJEITADA,
PROCESSADOR_OCA,
)

Expand Down Expand Up @@ -324,6 +325,7 @@ def _eletronic_document_send(self):
)
vals['edoc_error_message'] = \
mensagem_completa
record._change_state(SITUACAO_EDOC_REJEITADA)
record.write(vals)
return
else:
Expand Down Expand Up @@ -365,6 +367,7 @@ def _eletronic_document_send(self):
correcao + '\n'
)
vals['edoc_error_message'] = mensagem_completa
record._change_state(SITUACAO_EDOC_REJEITADA)

if processo.resposta.ListaNfse:
xml_file = processo.retorno
Expand Down