Monitor de NFS-e
l10n_br_nfse_dfe · OCA/l10n-brazil
Health
60/100
fair
-
Security25/25No findings
-
Activity25/25Human commit this month
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 18.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
12 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.2 MB
Module directory on disk
Code analysis
0 migration notes
8 models
3 views
0 HTTP endpoints
Description
Monitor de NFS-e nacional (Distribuição DF-e)
Este módulo baixa as NFS-e nacionais emitidas contra o CNPJ da empresa pela API de distribuição do ADN (Ambiente de Dados Nacional) e as coloca na mesma caixa de entrada do monitor de DF-e.
A NF-e continua no webservice SOAP NFeDistribuicaoDFe. A NFS-e nacional usa um cliente REST com certificado digital (mTLS) e não passa por esse fluxo.
Principais funcionalidades
- Consulta por NSU em
GET /contribuintes/DFe/{NSU}, com paginação do lote. - Gravação em
l10n_br_fiscal_dfe.documentel10n_br_fiscal_dfe.dfe, com o tipo fiscalnfse. - Notas completas e eventos. O cancelamento atualiza a situação do documento já recebido.
- Importação do XML nacional como documento fiscal de serviço (modelo
SE), com uma linha de serviço. - Cron e canal
queue_jobreutilizados pelo motor genérico de DF-e.
Dependencies
- Odoo dependencies
- Python dependencies
- brazilfiscalreport, cryptography, nfelib>=3.2.0, requests, erpbrasil-base>=2.4.2, email-validator, num2words, phonenumbers, erpbrasil.edoc, erpbrasil.transmissao, transitions, erpbrasil.assinatura
- System dependencies
- None
- Required by
- None
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 3
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
document_import_wizard_form_nfse |
document.import.wizard.form.nfse | l10n_br_fiscal.document.import.wizard | form | Inherits l10n_br_fiscal.document_import_wizard_form |
nfse_dfe_document_tree |
l10n_br_fiscal_dfe.document.tree.nfse | l10n_br_fiscal_dfe.document | list | New |
nfse_dfe_res_company_form |
nfse.dfe.res.company.form | res.company | form | Inherits l10n_br_fiscal.fiscal_res_company_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 8
New fields (1)
-
fiscal_typeSelectionondelete={'nfse': 'cascade'}selection_add=[('nfse', 'NFS-e')]
No public methods.
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (1)
-
product_idMany2one → product.productcomodel_name='product.product'domain="[('type', '=', 'service')]"string='Service Product'
No public methods.
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (1)
-
fiscal_typeSelectionondelete={'nfse': 'cascade'}selection_add=[('nfse', 'NFS-e')]
No public methods.
New fields (1)
-
fiscal_typeSelectionondelete={'nfse': 'cascade'}selection_add=[('nfse', 'NFS-e')]
No public methods.
New fields (1)
-
fiscal_typeSelectionondelete={'nfse': 'cascade'}selection_add=[('nfse', 'NFS-e')]
-
import_document(self) -
make_pdf(self)Generate the DANFSE PDF from the complete NFS-e XML.
New fields (9)
-
nfse_auto_fetchBooleanhelp='Periodically query the ADN for NFS-e documents issued to this company.'string='Auto-fetch NFS-e' -
nfse_dfe_environmentSelectiondefault='producao_restrita'help='Environment of the national NFS-e distribution API (ADN). This is not the municipal NFS-e emission environment.'required=Trueselection=[('producao', 'Production'), ('producao_restrita', 'Restricted Production')]string='NFS-e ADN Environment' -
nfse_dfe_last_queryDatetimestring='NFS-e DF-e Last Query' -
nfse_dfe_last_statusCharreadonly=Truestring='NFS-e DF-e Last Status' -
nfse_dfe_last_status_codeCharreadonly=Truestring='NFS-e DF-e Last Status Code' -
nfse_dfe_next_queryDatetimehelp='NFS-e distribution will not be queried before this time.'string='NFS-e Next Scheduled Query' -
nfse_import_product_idMany2one → product.productcomodel_name='product.product'domain="[('type', '=', 'service')]"help='Service product applied when a national NFS-e is imported and the wizard has no product yet.'string='Default NFS-e Import Product' -
nfse_last_nsuChardefault='0'size=25string='NFS-e Last NSU' -
nfse_max_nsuCharreadonly=Truestring='NFS-e Max NSU'
-
action_nfse_document_distribution(self) -
action_nfse_search_specific(self)