Mail Operating Unit
mail_operating_unit · OCA/operating-unit
-
Security25/25No findings
-
Activity25/25Last human commit 1 month ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 17.0
Heuristic over the facts below, not an audit · How it's computed
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.
Dependencies
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 6
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
email_template_form |
mail.template | form | Inherits mail.email_template_form | |
email_template_tree |
mail.template | tree | Inherits mail.email_template_tree | |
view_email_template_search |
mail.template | search | Inherits mail.view_email_template_search | |
view_operating_unit_form |
operating.unit | form | Inherits operating_unit.view_operating_unit_form | |
view_operating_unit_search |
operating.unit | search | Inherits operating_unit.view_operating_unit_search | |
view_operating_unit_tree |
operating.unit | tree | Inherits operating_unit.view_operating_unit_tree |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 4
No new fields.
Public methods (0)No public methods.
-
operating_unit_idMany2one → operating.unitstring='Operating Unit' args: 'operating.unit'
No public methods.
-
operating_unit_idMany2one → operating.unitstring='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_idMany2one → mail.alias.domainstring='Alias Domain' args: 'mail.alias.domain' -
mail_server_idMany2one → ir.mail_servercomodel_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.
Loading…