l10n_br_fiscal_certificate
Manage Brazilian A1/A3 fiscal certificates so companies can sign and transmit electronic fiscal documents within Odoo.
Key Features
- l10n_br_fiscal.certificate: Validates uploaded certificate content and extracts issuer, owner, identifier, and validity dates from the PKCS#12 using the provided password.
- l10n_br_fiscal.certificate: Computes a descriptive name and filename from certificate type, subtype, owner, and expiration, and flags whether the certificate is still valid.
- res.company: Stores separate e-CNPJ and NF-e certificates, deriving a default certificate and blocking operations when none are configured.
- res.company: Provides a helper to return an erpbrasil.assinatura certificate object, optionally enforcing use of the e-CNPJ credential.
- res.config.settings: Adds a configurable number of days to trigger certificate expiration alerts via a system parameter.
- ui: Adds menus and forms to upload certificates, view extracted details, and manage them with chatter support.
- security: Defines access controls giving fiscal managers full certificate CRUD while fiscal users have read access.
- demo: Creates sample certificates for demo companies during installation when demo data is enabled.