| REPOSITORY | |
|---|---|
| REPOSITORY | OCA/mail |
| GIT | |
| GIT | https://github.com/OCA/mail.git |
| GIT FOLDER | |
| GIT FOLDER | https://github.com/OCA/mail/tree/18.0/mail_template_substitute |
| VERSION | |
| VERSION | 1.0.0 |
| CATEGORY | |
| CATEGORY | Uncategorized |
| LICENSE | |
| LICENSE | AGPL-3 |
| APPLICATION | |
| APPLICATION | No |
| AUTO-INSTALLABLE | |
| AUTO-INSTALLABLE | No |
| AUTHORS | |
| AUTHORS | Odoo Community Association (OCA), ACSONE SA/NV |
| MAINTAINERS | |
| MAINTAINERS | Odoo Community Association (OCA), ACSONE SA/NV |
| COMMITTERS | |
| COMMITTERS | OCA-git-bot, oca-ci, eugenio |
| WEBSITE | |
| WEBSITE | https://github.com/OCA/mail |
| LAST TRACKING UPDATE | |
| LAST TRACKING UPDATE | 2026-07-06 19:30:18 |
| ODOO DEPENDENCIES | |
| ODOO DEPENDENCIES |
odoo/odoo: - base - base_setup - web - bus - web_tour - html_editor - account - onboarding - product - uom - analytic - portal - web_editor - http_routing - auth_signup - digest - resource |
| PYTHON DEPENDENCIES | |
| PYTHON DEPENDENCIES | Not have |
| SYSTEM DEPENDENCIES | |
| SYSTEM DEPENDENCIES | Not have |
| DESCRIPTION | |
| 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. |
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
email_template_form |
mail.template.form (in mail_template_substitute) | mail.template | xpath | Inherits mail.email_template_form |
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (1)default_get(self, fields)
mail_template_substitution_rule_ids
One2many → mail.template.substitution.rule
comodel_name='mail.template.substitution.rule'
inverse_name='mail_template_id'
string='Substitution Rules'
No public methods.
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
No public methods.
| REPOSITORY | |
|---|---|
| REPOSITORY | OCA/social |
| GIT | |
| GIT | https://github.com/OCA/social.git |
| GIT FOLDER | |
| GIT FOLDER | https://github.com/OCA/social/tree/17.0/mail_template_substitute |
| VERSION | |
| VERSION | 1.0.0 |
| CATEGORY | |
| CATEGORY | Uncategorized |
| LICENSE | |
| LICENSE | AGPL-3 |
| APPLICATION | |
| APPLICATION | No |
| AUTO-INSTALLABLE | |
| AUTO-INSTALLABLE | No |
| AUTHORS | |
| AUTHORS | Odoo Community Association (OCA), ACSONE SA/NV |
| MAINTAINERS | |
| MAINTAINERS | Odoo Community Association (OCA), ACSONE SA/NV |
| COMMITTERS | |
| COMMITTERS | Weblate, OCA-git-bot, oca-ci, Sakthivel |
| WEBSITE | |
| WEBSITE | https://github.com/OCA/social |
| LAST TRACKING UPDATE | |
| LAST TRACKING UPDATE | 2026-07-06 19:20:08 |
| ODOO DEPENDENCIES | |
| ODOO DEPENDENCIES |
odoo/odoo: - base - base_setup - web - bus - web_tour |
| PYTHON DEPENDENCIES | |
| PYTHON DEPENDENCIES | Not have |
| SYSTEM DEPENDENCIES | |
| SYSTEM DEPENDENCIES | Not have |
| DESCRIPTION | |
| 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. |
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
email_template_form |
mail.template.form (in mail_template_substitute) | mail.template | xpath | Inherits mail.email_template_form |
No new fields.
Public methods (1)default_get(self, fields)
mail_template_substitution_rule_ids
One2many → mail.template.substitution.rule
comodel_name='mail.template.substitution.rule'
inverse_name='mail_template_id'
string='Substitution Rules'
No public methods.
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
No public methods.
| REPOSITORY | |
|---|---|
| REPOSITORY | OCA/social |
| GIT | |
| GIT | https://github.com/OCA/social.git |
| GIT FOLDER | |
| GIT FOLDER | https://github.com/OCA/social/tree/16.0/mail_template_substitute |
| VERSION | |
| VERSION | 1.0.1 |
| CATEGORY | |
| CATEGORY | Uncategorized |
| LICENSE | |
| LICENSE | AGPL-3 |
| APPLICATION | |
| APPLICATION | No |
| AUTO-INSTALLABLE | |
| AUTO-INSTALLABLE | No |
| AUTHORS | |
| AUTHORS | Odoo Community Association (OCA), ACSONE SA/NV |
| MAINTAINERS | |
| MAINTAINERS | Odoo Community Association (OCA), ACSONE SA/NV |
| COMMITTERS | |
| COMMITTERS | Weblate, OCA-git-bot, oca-ci, DoDo, Karthik, Sodexis |
| WEBSITE | |
| WEBSITE | https://github.com/OCA/social |
| LAST TRACKING UPDATE | |
| LAST TRACKING UPDATE | 2026-07-06 00:53:54 |
| ODOO DEPENDENCIES | |
| ODOO DEPENDENCIES |
OCA/reporting-engine: - report_substitute odoo/odoo: - base - base_setup - web - bus - web_tour |
| PYTHON DEPENDENCIES | |
| PYTHON DEPENDENCIES | Not have |
| SYSTEM DEPENDENCIES | |
| SYSTEM DEPENDENCIES | Not have |
| DESCRIPTION | |
| DESCRIPTION | |
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
email_template_form |
mail.template.form (in mail_template_substitute) | mail.template | xpath | Inherits mail.email_template_form |
No new fields.
Public methods (1)default_get(self, fields)
mail_template_substitution_rule_ids
One2many → mail.template.substitution.rule
comodel_name='mail.template.substitution.rule'
inverse_name='mail_template_id'
string='Substitution Rules'
No public methods.
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
No public methods.
| REPOSITORY | |
|---|---|
| REPOSITORY | OCA/social |
| GIT | |
| GIT | https://github.com/OCA/social.git |
| GIT FOLDER | |
| GIT FOLDER | https://github.com/OCA/social/tree/12.0/mail_template_substitute |
| VERSION | |
| VERSION | 1.0.1 |
| CATEGORY | |
| CATEGORY | Uncategorized |
| LICENSE | |
| LICENSE | AGPL-3 |
| APPLICATION | |
| APPLICATION | No |
| AUTO-INSTALLABLE | |
| AUTO-INSTALLABLE | No |
| AUTHORS | |
| AUTHORS | Odoo Community Association (OCA), ACSONE SA/NV |
| MAINTAINERS | |
| MAINTAINERS | Odoo Community Association (OCA), ACSONE SA/NV |
| COMMITTERS | |
| COMMITTERS | sbejaoui, oca-travis, OCA-git-bot |
| WEBSITE | |
| WEBSITE | https://github.com/OCA/social |
| LAST TRACKING UPDATE | |
| LAST TRACKING UPDATE | 2026-07-06 00:29:23 |
| ODOO DEPENDENCIES | |
| ODOO DEPENDENCIES |
OCA/reporting-engine: - report_substitute odoo/odoo: - base - base_setup - web - bus - web_tour |
| PYTHON DEPENDENCIES | |
| PYTHON DEPENDENCIES | Not have |
| SYSTEM DEPENDENCIES | |
| SYSTEM DEPENDENCIES | Not have |
| DESCRIPTION | |
| DESCRIPTION | |
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
email_template_form |
mail.template.form (in mail_template_substitute) | mail.template | xpath | Inherits mail.email_template_form |
No new fields.
Public methods (2)default_get(self, fields)
onchange_template_id_wrapper(self)
mail_template_substitution_rule_ids
One2many → mail.template.substitution.rule
comodel_name='mail.template.substitution.rule'
inverse_name='mail_template_id'
string='Substitution Rules'
get_email_template(self, res_ids)
domain
Char
default='[]'
required=True
string='Domain'
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
No public methods.
| STATUS | |
|---|---|
| STATUS | Open migration PR - not merged yet for this version |
| REPOSITORY | |
| REPOSITORY | OCA/mail |
| PULL REQUEST | |
| PULL REQUEST | [19.0][MIG] mail_template_substitute: Migration to 19.0 (#171) |