Skip to content
Health
75/100
good
  • Security25/25
    No findings
  • Activity20/25
    Last human commit 8 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity25/25
    In 5 Odoo series since 12.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
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.05 MB
Module directory on disk
Code analysis 0 migration notes 4 models 1 view 0 HTTP endpoints

Description

This module allows you to create substitution rules for mail templates. A typical use case is to replace a standard template by alternative templates when some conditions are met. For instance, it allows to configure alternate templates for different companies.

Dependencies

Odoo dependencies
Python dependencies
None
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 1

XML IDNameModelTypeStatus
email_template_form mail.template.form (in mail_template_substitute) mail.template form Inherits mail.email_template_form

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 4

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • default_get(self, fields)
    @api.model

New fields (1)
  • mail_template_substitution_rule_ids One2many → mail.template.substitution.rule
    comodel_name='mail.template.substitution.rule' inverse_name='mail_template_id' string='Substitution Rules'
Public methods (0)

No public methods.

New fields (5)
  • domain Char
    default='[]' required=True
  • mail_template_id Many2one → mail.template
    comodel_name='mail.template' ondelete='cascade' required=True
  • model Char
    related='mail_template_id.model_id.model' store=True
  • sequence Integer
    default=10
  • substitution_mail_template_id Many2one → mail.template
    comodel_name='mail.template' domain="[('model', '=', model)]" ondelete='cascade' required=True
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…