Mail Template Domain
by Tecnativa https://github.com/OCA/mail , Odoo Community Association (OCA) https://github.com/OCA/mailMail Template Domain

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.
Table of contents
Usage
To use this module:
- Go to Settings > Technical > Email > Templates.
- Open or create a mail template.
- Select an option under Applies to (such as Contact).
- Check the Restrict to checkbox, set the domain that records must match for this template to appear in the composer (e.g. [('is_company', '=', True)] to show the template only on contacts where Is a Company is set).
- Leave Apply on empty to keep the template available for all records of the model (default behaviour).
When a user opens the email composer from a record, only templates whose Apply on domain matches that record will be listed in the Load template dropdown.
Known issues / Roadmap
The domain applied automatically in server actions is not supported.
Bug Tracker
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.
Do not contact contributors directly about support or help with technical issues.
Credits
Authors
- Tecnativa
Contributors
- Tecnativa:
- Cristina Hidalgo
- Víctor Martínez
Maintainers
This module is maintained by the OCA.
OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.
This module is part of the OCA/mail project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Please log in to comment on this module