OdooWiki OCA HUB

Restrict follower selection

mail_restrict_follower_selection folder_open OCA/mail open_in_new
Social Network License: AGPL-3

This module was written to allow you to restrict the selection of possible followers. For example, if you use the social ERP functions only internally, it makes sense to filter possible followers for being employees. Otherwise, you'll get a quite crowded list of partners to choose from.

Moreover, the module disables the option to automatically add followers that do not meet the domain.

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

Restrict which contacts can be picked as followers on records, using a configurable filter. It also silently drops followers that do not match the filter when they are added.

This module lets you control who can be chosen as a follower on records that use the chatter (for example sales orders, projects or tasks). Instead of seeing every contact in the database, users only see the contacts allowed by a filter you configure.

Where it appears: - The follower selection screen (the "Add followers" wizard) shows only allowed contacts. - A configuration action named "Configure the restriction on followers" opens the system parameter where the filter is stored.

Business rules and automatic behaviour: - A global filter is stored in a system parameter; a separate filter can be set per model (for example one filter for contacts, another for sales orders). - When a user adds followers, any selected contact that does not match the filter is automatically removed before saving, so disallowed followers cannot be added through the wizard. - The same filter is applied to the follower field on records, so the dropdown list of possible followers is limited.

Areas touched: - The chatter follower mechanism (mail.thread, mail.followers.edit) and the follower list in the web client. - Configuration is done through ir.config_parameter; the module ships with an empty default filter and a demo filter for contacts.

Depends on

mail
Models and fields (2)
  • mail.thread · extends an existing modelmessage_partner_ids
  • mail.followers.edit · extends an existing model

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-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

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

terminal Installation and usage

OCA documentation · Odoo 19.0

To configure this module, you need to go to System parameters and adjust mail_restrict_follower_selection.domain as you see fit. This restricts followers globally, if you want to restrict only the followers for a certain record type (or have different restrictions for different record types), create a parameter mail_restrict_follower_selection.domain.\$your_model.

Some examples:

  • [("category_id.name", "=", "Employees")] : Only allow contacts with 'Employees' tag
  • [("is_company", "=", False)] : Restrict company contacts to be added as follower (to avoid emails to info@ email address)
  • [("user_ids","!=",False)] : Restrict to contacts with user (internal and portal)
  • [("employee_ids","!=",False)] : Restrict to employees

Note: This module won't change existing followers!

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.