TIP: You can type at any time to perform a new search.
Mail Template Substitute
mail_template_substitute · OCA/mail
- Repository
- OCA/mail · module folder · Try on Runboat
- Module version
- 1.0.0
- Category
- Uncategorized
- Folder size
- 0.05 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/mail
- Last tracking update
- 2026-08-07 08:42:57
- Authors
- ACSONE SA/NV, Odoo Community Association (OCA)
- Maintainers
- ACSONE SA/NV, Odoo Community Association (OCA)
- Committers
- OCA-git-bot, oca-ci, eugenio
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
- 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.
Code Analysis ⓘ
Views touched (1)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
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_idsOne2many → mail.template.substitution.rulecomodel_name='mail.template.substitution.rule'inverse_name='mail_template_id'string='Substitution Rules'
No public methods.
New fields (5)
-
domainChardefault='[]'required=True -
mail_template_idMany2one → mail.templatecomodel_name='mail.template'ondelete='cascade'required=True -
modelCharrelated='mail_template_id.model_id.model'store=True -
sequenceIntegerdefault=10 -
substitution_mail_template_idMany2one → mail.templatecomodel_name='mail.template'domain="[('model', '=', model)]"ondelete='cascade'required=True
No public methods.
Loading…
Loading…
Loading…
- Status
- Open migration PR — not merged yet for this version
- CI status
- checks failing
- Open since
- 133 days ago
- Last activity
- 11 days ago
- Repository
- OCA/mail
- Pull request
- [19.0][MIG] mail_template_substitute: Migration to 19.0 (#171)