Fiscal Document Notifications
l10n_br_fiscal_notification · OCA/l10n-brazil
-
Security25/25No findings
-
Activity25/25Last human commit 2 months ago
-
Required by5/250 modules depend on it
-
Maturity18/25In 3 Odoo series since 16.0
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
DocumentEmail— Migrating to 19.0: `_sql_constraints` is ignored and its constraints are silently not created: declare `models.Constraint` attributes instead. migration-sql-constraints · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Este módulo permite o envio automático de e-mails de notificação sempre que o status de um documento fiscal é alterado. Ele inclui dois modelos de e-mail pré-configurados:
- Um modelo específico para NFSe
- Um modelo genérico para os demais documentos fiscais
Observação: É importante destacar que funcionalidades semelhantes de notificação podem ser implementadas de forma mais genérica utilizando o módulo automation_oca (disponível no repositório OCA/automation).
Dependencies
- Odoo dependencies
- Python dependencies
- transitions, erpbrasil-base>=2.5.0, email-validator, erpbrasil-base>=2.4.2, num2words, phonenumbers
- 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 4
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
document_email_form |
l10n_br_fiscal.document.email.form | l10n_br_fiscal.document.email | form | New |
document_email_tree |
l10n_br_fiscal.document.email.tree | l10n_br_fiscal.document.email | list | New |
document_form |
l10n_br_fiscal.document | form | Inherits l10n_br_fiscal.document_form | |
document_type_form |
l10n_br_fiscal.document.type | form | Inherits l10n_br_fiscal.document_type_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 4
No new fields.
Public methods (4)-
action_send_email(self)Open a window to compose an email, with the fiscal document_type template message loaded by default -
get_state_machine_config(self) -
send_email(self, state) -
write(self, vals)
-
activeBooleandefault=True -
company_idMany2one → res.companycomodel_name='res.company'string='Company' -
document_type_idMany2one → l10n_br_fiscal.document.typecomodel_name='l10n_br_fiscal.document.type'help='Select the type of document that will be applied to the email templates definitions.'string='Fiscal Document Type' -
email_template_idMany2one → mail.templatecomodel_name='mail.template'domain=[('model', '=', 'l10n_br_fiscal.document')]help='Select the email template that will be sent when this document state change.'required=Truestring='Fiscal Document E-mail Template' -
issuerSelectiondefault=DOCUMENT_ISSUER_COMPANYrequired=Trueselection=DOCUMENT_ISSUER -
nameCharcompute='_compute_name'copy=Falsereadonly=Truestore=True -
state_edocSelectioncopy=Falseindex=Trueselection=<expr>string='Situação e-doc'
No public methods.
-
document_email_idsOne2many → l10n_br_fiscal.document.emailcomodel_name='l10n_br_fiscal.document.email'inverse_name='document_type_id'string='Email Template Definition'
No public methods.
-
document_email_idsOne2many → l10n_br_fiscal.document.emailcomodel_name='l10n_br_fiscal.document.email'inverse_name='company_id'string='Email Template Definition'
No public methods.
Loading…
Loading…