| REPOSITORY | |
|---|---|
| REPOSITORY | OCA/operating-unit |
| GIT | |
| GIT | https://github.com/OCA/operating-unit.git |
| GIT FOLDER | |
| GIT FOLDER | https://github.com/OCA/operating-unit/tree/17.0/mail_operating_unit |
| VERSION | |
| VERSION | 2.0.1 |
| CATEGORY | |
| CATEGORY | Productivity/Discuss |
| LICENSE | |
| LICENSE | LGPL-3 |
| APPLICATION | |
| APPLICATION | No |
| AUTO-INSTALLABLE | |
| AUTO-INSTALLABLE | No |
| AUTHORS | |
| AUTHORS | Odoo Community Association (OCA), Camptocamp |
| MAINTAINERS | |
| MAINTAINERS | Odoo Community Association (OCA), Camptocamp |
| COMMITTERS | |
| COMMITTERS | jcoux, Weblate, OCA-git-bot, oca-ci, Vincent Van Rossem, Maksym Yankin, ilo |
| WEBSITE | |
| WEBSITE | https://github.com/OCA/operating-unit |
| LAST TRACKING UPDATE | |
| LAST TRACKING UPDATE | 2026-07-06 19:20:11 |
| ODOO DEPENDENCIES | |
| ODOO DEPENDENCIES |
OCA/operating-unit: - operating_unit 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 companies working with multiple Operating Units to send emails with the appropriate email domain and, optionally, the appropriate outgoing mail server depending on the Operating Unit context. It lets you define an Alias Domain on an Operating Unit and use that domain automatically when emails are generated from templates or records linked to that Operating Unit. It also allows you to define an Outgoing Mail Server on an Operating Unit and automatically route emails through that server when no mail server is explicitly defined on the email template. This is especially useful in multi-brand or multi-entity environments where each Operating Unit must send emails using its own domain and SMTP server, while still keeping the standard Odoo behavior as a fallback when no specific Operating Unit configuration can be determined. |
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
email_template_form |
mail.template | xpath | Inherits mail.email_template_form | |
email_template_tree |
mail.template | xpath | Inherits mail.email_template_tree | |
view_email_template_search |
mail.template | xpath | Inherits mail.view_email_template_search | |
view_operating_unit_form |
operating.unit | xpath | Inherits operating_unit.view_operating_unit_form | |
view_operating_unit_search |
operating.unit | xpath | Inherits operating_unit.view_operating_unit_search | |
view_operating_unit_tree |
operating.unit | xpath | Inherits operating_unit.view_operating_unit_tree |
No new fields.
Public methods (0)No public methods.
operating_unit_id
Many2one → operating.unit
string='Operating Unit'
args: 'operating.unit'
No public methods.
operating_unit_id
Many2one → operating.unit
string='Operating Unit'
args: 'operating.unit'
send_mail(self, res_id, force_send=False, raise_exception=False, email_values=None, email_layout_xmlid=False)
alias_domain_id
Many2one → mail.alias.domain
string='Alias Domain'
args: 'mail.alias.domain'
mail_server_id
Many2one → ir.mail_server
comodel_name='ir.mail_server'
help='Preferred outgoing mail server for emails sent for records belonging to this operating unit.'
string='Outgoing Mail Server'
No public methods.