Mail Template Domain

mail_template_domain
REPOSITORY
REPOSITORYOCA/mail
GIT
GIThttps://github.com/OCA/mail.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/mail/tree/18.0/mail_template_domain
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYTechnical
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA)
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA)
COMMITTERS
COMMITTERSVíctor Martínez, Weblate, OCA-git-bot, oca-ci
WEBSITE
WEBSITEhttps://github.com/OCA/mail
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:30:18
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - mail
    - base
    - base_setup
    - web
    - bus
    - web_tour
    - html_editor
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module allows setting an application domain on mail templates.

When a domain is configured on a template, that template will only appear
in the email composer when the active record matches the domain. Templates
without a domain continue to appear for all records of the applicable model.

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
email_template_form_filter_domain mail.template.form.filter.domain mail.template field Inherits mail.email_template_form
Models touched (2)

New fields (2)
  • domain_template_id Binary
    compute='_compute_domain_template_id'
  • template_id Many2one
    domain='domain_template_id'
Public methods (0)

No public methods.

New fields (2)
  • filter_domain Char
    compute='_compute_filter_domain' help='If set, this template will only appear in the email composer when the active record matches this domain.' readonly=False store=True string='Restrict domain'
  • filter_model Boolean
    string='Restrict?'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/mail
GIT
GIThttps://github.com/OCA/mail.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/mail/tree/17.0/mail_template_domain
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYTechnical
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA)
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA)
COMMITTERS
COMMITTERSVíctor Martínez, Weblate, OCA-git-bot, oca-ci
WEBSITE
WEBSITEhttps://github.com/OCA/mail
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:20:10
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - mail
    - base
    - base_setup
    - web
    - bus
    - web_tour
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module allows setting an application domain on mail templates.

When a domain is configured on a template, that template will only appear
in the email composer when the active record matches the domain. Templates
without a domain continue to appear for all records of the applicable model.

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
email_template_form_filter_domain mail.template.form.filter.domain mail.template field Inherits mail.email_template_form
mail_compose_message_form_filter_domain mail.compose.message.form.filter.domain mail.compose.message field Inherits mail.email_compose_message_wizard_form
Models touched (2)

New fields (2)
  • domain_template_id Binary
    compute='_compute_domain_template_id'
  • template_id Many2one
    domain='domain_template_id'
Public methods (0)

No public methods.

New fields (2)
  • filter_domain Char
    compute='_compute_filter_domain' help='If set, this template will only appear in the email composer when the active record matches this domain.' readonly=False store=True string='Restrict domain'
  • filter_model Boolean
    string='Restrict?'
Public methods (0)

No public methods.