Repository
OCA/operating-unit · module folder · Try on Runboat
Module version
2.0.1
Category
Productivity/Discuss
Folder size
0.07 MB
License
LGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/operating-unit
Last tracking update
2026-08-07 08:23:02
Authors
Camptocamp, Odoo Community Association (OCA)
Maintainers
Camptocamp, Odoo Community Association (OCA)
Committers
jcoux, Maksym Yankin, Vincent Van Rossem, Weblate, OCA-git-bot, oca-ci, ilo
Odoo dependencies
OCA/operating-unit:
odoo/odoo:
- web
- bus
Python dependencies
None
System dependencies
None
Required by
None
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.

Code Analysis

Views touched (6)
XML IDNameModelTypeStatus
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)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • operating_unit_id Many2one → operating.unit
    string='Operating Unit' args: 'operating.unit'
Public methods (0)

No public methods.

New fields (1)
  • operating_unit_id Many2one → operating.unit
    string='Operating Unit' args: 'operating.unit'
Public methods (1)
  • send_mail(self, res_id, force_send=False, raise_exception=False, email_values=None, email_layout_xmlid=False)

New fields (2)
  • 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'
Public methods (0)

No public methods.