Skip to content
Health
73/100
fair
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 2 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity18/25
    In 3 Odoo series since 16.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
6 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.07 MB
Module directory on disk
Code analysis 1 migration note 4 models 4 views 0 HTTP endpoints

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
OCA/l10n-brazil:
OCA/product-attribute:
odoo/odoo:
- web
- bus
- uom
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 IDNameModelTypeStatus
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

New fields (0)

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)

New fields (7)
  • active Boolean
    default=True
  • company_id Many2one → res.company
    comodel_name='res.company' string='Company'
  • document_type_id Many2one → l10n_br_fiscal.document.type
    comodel_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_id Many2one → mail.template
    comodel_name='mail.template' domain=[('model', '=', 'l10n_br_fiscal.document')] help='Select the email template that will be sent when this document state change.' required=True string='Fiscal Document E-mail Template'
  • issuer Selection
    default=DOCUMENT_ISSUER_COMPANY required=True selection=DOCUMENT_ISSUER
  • name Char
    compute='_compute_name' copy=False readonly=True store=True
  • state_edoc Selection
    copy=False index=True selection=<expr> string='Situação e-doc'
Public methods (0)

No public methods.

New fields (1)
  • document_email_ids One2many → l10n_br_fiscal.document.email
    comodel_name='l10n_br_fiscal.document.email' inverse_name='document_type_id' string='Email Template Definition'
Public methods (0)

No public methods.

New fields (1)
  • document_email_ids One2many → l10n_br_fiscal.document.email
    comodel_name='l10n_br_fiscal.document.email' inverse_name='company_id' string='Email Template Definition'
Public methods (0)

No public methods.

Loading…

Loading…