OdooWiki OCA HUB

Mail Message Restrict

mail_message_restrict folder_open OCA/social open_in_new
Mail License: AGPL-3

This module limits the creation of non-internal messages in the chatter to certain "allowed" models. This means that, upon installation of the module, users will get an error message when they try to create a message in the chatter, unless the model of the chatter is part of the "allowed" models.

auto_awesome What this module does

AI-generated from the code · Odoo 15.0

Restricts posting non-internal chatter messages to a list of allowed models per message subtype. Administrators configure which models may receive messages for each subtype.

This module adds a control on the chatter: when a user posts a message that is not an internal note, Odoo checks whether the model of the record is allowed for the message subtype being used. If it is not allowed, the message is blocked and the user sees an error asking them to contact the system administrator.

Where it appears in Odoo: - On the message subtype form (the configuration screen behind chatter subtypes), a new field "Allowed models" lets administrators pick, with tags, which models may send messages for that subtype. - That field is hidden for the default "Comment" subtype, so the standard comment behaviour is not changed by this screen.

Business rules and automatic behaviour: - Only messages of type comment are checked; internal notes are not affected. - A subtype marked as internal is never blocked. - If the record's model is not in the allowed list of the subtype, creation of the message raises an error and the message is not saved. - During automated tests the restriction is skipped unless a specific context flag is set.

Areas touched: the chatter message model mail.message and the message subtype configuration model mail.message.subtype. No new menus or reports are added.

Depends on

mail
Models and fields (2)
  • mail.message · extends an existing model
  • mail.message.subtype · extends an existing modelallow_send_model_ids, hide_allow_send_model

Text generated by AI (DeepSeek) from reading the Odoo 15.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-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 1 confirmed, 8 with no information of 9 versions.

terminal Installation and usage

OCA documentation · Odoo 15.0
  • Navigate to Settings > Technical > Email > Subtypes.
  • In the "Allow Send Model" field, select the models for which you want to allow sending mail.

No verified information in OCA: Installation, Usage.

info

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.