Skip to main content
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

Contributors

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.

Metadata

Release files for odoo-addon-mail-restrict-access-button 18.0.1.0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for odoo-addon-mail-restrict-access-button 18.0.1.0.0.4
File Interpreter ABI Platform Actions
odoo_addon_mail_restrict_access_button-18.0.1.0.0.4-py3-none-any.whl Python 3 none any Details for odoo_addon_mail_restrict_access_button-18.0.1.0.0.4-py3-none-any.whl

Release files / odoo_addon_mail_restrict_access_button-18.0.1.0.0.4-py3-none-any.whl

Download URL odoo_addon_mail_restrict_access_button-18.0.1.0.0.4-py3-none-any.whl
Size 25.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7d1f9923d8a540ef8eec7ddc50b036430f474eeae7e6f59fb521488b846bf22b
BLAKE2b-256 checksum
How to use checksums
bbca1f529ab2c45156a0e1df7ac6b50382d5af131296267a2ee0c694c3884473
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Security for odoo-addon-mail-restrict-access-button 18.0.1.0.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page