Skip to content
Health
60/100
fair
  • Security25/25
    No findings
  • Activity25/25
    Human commit this month
  • Required by5/25
    0 modules depend on it
  • Maturity5/25
    In 1 Odoo series since 18.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
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.document e l10n_br_fiscal_dfe.dfe, com o tipo fiscal nfse.
  • 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_job reutilizados pelo motor genérico de DF-e.

Dependencies

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 3

XML IDNameModelTypeStatus
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_type Selection
    ondelete={'nfse': 'cascade'} selection_add=[('nfse', 'NFS-e')]
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • product_id Many2one → product.product
    comodel_name='product.product' domain="[('type', '=', 'service')]" string='Service Product'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • fiscal_type Selection
    ondelete={'nfse': 'cascade'} selection_add=[('nfse', 'NFS-e')]
Public methods (0)

No public methods.

New fields (1)
  • fiscal_type Selection
    ondelete={'nfse': 'cascade'} selection_add=[('nfse', 'NFS-e')]
Public methods (0)

No public methods.

New fields (1)
  • fiscal_type Selection
    ondelete={'nfse': 'cascade'} selection_add=[('nfse', 'NFS-e')]
Public methods (2)
  • import_document(self)
  • make_pdf(self)
    Generate the DANFSE PDF from the complete NFS-e XML.

New fields (9)
  • nfse_auto_fetch Boolean
    help='Periodically query the ADN for NFS-e documents issued to this company.' string='Auto-fetch NFS-e'
  • nfse_dfe_environment Selection
    default='producao_restrita' help='Environment of the national NFS-e distribution API (ADN). This is not the municipal NFS-e emission environment.' required=True selection=[('producao', 'Production'), ('producao_restrita', 'Restricted Production')] string='NFS-e ADN Environment'
  • nfse_dfe_last_query Datetime
    string='NFS-e DF-e Last Query'
  • nfse_dfe_last_status Char
    readonly=True string='NFS-e DF-e Last Status'
  • nfse_dfe_last_status_code Char
    readonly=True string='NFS-e DF-e Last Status Code'
  • nfse_dfe_next_query Datetime
    help='NFS-e distribution will not be queried before this time.' string='NFS-e Next Scheduled Query'
  • nfse_import_product_id Many2one → product.product
    comodel_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_nsu Char
    default='0' size=25 string='NFS-e Last NSU'
  • nfse_max_nsu Char
    readonly=True string='NFS-e Max NSU'
Public methods (2)
  • action_nfse_document_distribution(self)
  • action_nfse_search_specific(self)