Mail Restrict Access Button
mail_restrict_access_button · OCA/mail
-
Security25/25No findings
-
Activity25/25Last human commit 1 month ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 18.0
Heuristic over the facts below, not an audit · How it's computed
Description
Odoo notification emails sent to non-internal recipients can include an access button, granting access to the Odoo instance and the related document without logging in.
This module restricts that access button so it is only shown to recipients who have a user account (internal users or portal users) and never to unregistered external partners. These external recipients will still receive the email, but the button will be removed.
For example, when an invoice is sent by email, Odoo adds an access button for the invoice customer and for any other contact added as a recipient, even if they have no user account. The button holds an access token that opens the invoice in the customer portal without logging in. With this module, those contacts still receive the email and its attachments, but without the button.
This logic applies dynamically across all recipient groups, including mixed ones (portal_customer) that contain both types of contacts.
A registered recipient in a mixed group keeps the button (and the group), while an unregistered one in that same context is automatically moved to the next buttonless group or the fallback group (buttonless too).
Dependencies
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 0
No views found for this module.
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 1
No new fields.
Public methods (0)No public methods.