l10n_br_nfse
Provide base support to issue and export Brazilian electronic service invoices (NFS-e) within Odoo using the OCA/erpbrasil infrastructure.
Key Features
- l10n_br_fiscal.document: Adds NFSe-specific metadata fields (RPS type, operation nature, special regime, verification code, environment, construction details) and captures electronic document error messages.
- l10n_br_fiscal.document: Generates NFSe XML via erpbrasil with company certificates, records authorization events, and creates DANFSe PDF attachments during export.
- l10n_br_fiscal.document: Prepares NFSe payloads by aggregating service totals, taxation/retention amounts, service list and CNAE codes, discounts, and builds RPS lot data with Simples Nacional and cultural sponsor flags.
- l10n_br_fiscal.document.line: Adds fiscal deductions and other retention amounts to service lines, applying them in tax computations and NFSe service payloads.
- product.template: Stores a default fiscal deduction amount to prefill NFSe service lines.
- res.company: Holds NFSe provider/environment configuration, city branding and website info, SSL preference, and cultural sponsor indicator while supplying the municipal code for payloads.
- res.partner: Formats customer/provider identification and address details (CPF/CNPJ, municipal/state registrations, IBGE city codes, foreign handling) for NFSe data exchange.
- report: Provides the DANFSe report and paper format to print NFSe documents with city logo and verification information.