Repository
OCA/mail · module folder · Try on Runboat
Module version
1.0.0
Category
Technical
Folder size
0.04 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
Odoo Community Association (OCA), Tecnativa
Maintainers
Odoo Community Association (OCA), Tecnativa
Committers
Víctor Martínez, Weblate, OCA-git-bot, oca-ci
Odoo dependencies
odoo/odoo:
- web
- bus
Python dependencies
None
System dependencies
None
Required by
None
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 form Inherits mail.email_template_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

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.

Loading…