Mail Operating Unit

mail_operating_unit
REPOSITORY
REPOSITORYOCA/operating-unit
GIT
GIThttps://github.com/OCA/operating-unit.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/operating-unit/tree/17.0/mail_operating_unit
VERSION
VERSION 2.0.1
CATEGORY
CATEGORYProductivity/Discuss
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp
COMMITTERS
COMMITTERSjcoux, Weblate, OCA-git-bot, oca-ci, Vincent Van Rossem, Maksym Yankin, ilo
WEBSITE
WEBSITEhttps://github.com/OCA/operating-unit
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:20:11
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/operating-unit:
    - operating_unit
odoo/odoo:
    - mail
    - 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.

Code Analysis

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