This module adds company_id to the models ir.mail_server and mail.message. Also inherits mail.message create function to set the company mail_server.
auto_awesome What this module does
AI-generated from the code · Odoo 19.0Lets you assign each outgoing email server to a specific company, so emails sent from one company use that company's own SMTP server. It also automatically picks the right server when a message is created.
This module makes outgoing email servers company-specific. On the server configuration screen (Settings > Technical > Outgoing Mail Servers) a new "Company" field appears, visible to users who can work with multiple companies, and it is also shown in the server list. You can leave it empty for a server that should be shared by all companies.
When a message is created, the module automatically looks for the company of the related record and stores it on the message. If no company can be found, the company you are currently working in is used. It then searches for the first outgoing mail server belonging to that company (ordered by sequence) and assigns it to the message, so the email is sent through the correct server without manual selection.
Two record rules are added for multi-company security: outgoing mail servers are only visible if they belong to one of your allowed companies or have no company at all, and the same applies to queued emails based on their stored company. This prevents users from seeing or using another company's mail servers and messages.
Depends on
Models and fields (2)
- mail.message · extends an existing model
- ir.mail_server · extends an existing modelcompany_id
Text generated by AI (DeepSeek) from reading the Odoo 19.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub
Availability by version
Reviewed: 2026-11-03Confirmation status: 8 confirmed, 1 with no information of 9 versions.
Sources · Odoo 19.0
Confirmed on 2026-11-03 in branch 19.0 of OCA/multi-company.
terminal Installation and usage
OCA documentation · Odoo 19.0Configuration
Source · Odoo 19.0- Go to 'Settings / Technical / Outgoing Mail Servers', and add the company.
Usage
Source · Odoo 19.0To use this module, you need to:
- Send some email or message that comes out of Odoo.
No verified information in OCA: Installation.
Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.