Odoo Community Association

Mail Restrict Access Button

Beta License: AGPL-3 OCA/mail Translate me on Weblate Try me on Runboat

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).

Table of contents

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • ForgeFlow

Maintainers

This module is maintained by the OCA.

Odoo Community Association

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

This module is part of the OCA/mail project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.