Skip to main content

Restrict Deletion of Attachments

Project description

Odoo Community Association

Restrict Deletion of Attachments

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

This module provides the ability to restrict the deletion of the attachments at different levels.

Table of contents

Configuration

Select level:

  1. Go to Settings > General Settings> Permission section.

  2. Choose the level of Restrict Delete Attachment for all models by default or for models with “default” restriction level.

Five levels:

  • Default : Use global configuration

  • Owner : Owner and admins only

  • Custom : Certain groups or users per related model.

  • Owner + Custom : Owner, admins and Certain groups or users per related model.

  • None : all users can delete them

Only Custom and Owner + Custom need specific configuration on models.

For Custom and Owner + Custom levels:

  1. Go to Settings > Technical > Database Structure > Models.

  2. Open a model for which attachment deletion should be restricted.

  3. Select ‘Restrict Attachment Deletion’, and assign ‘Attachment Deletion Groups’ and/or ‘Attachment Deletion Users’ as necessary (if no assignment, no one can delete the attachments of this model).

For assigning ‘Attachment Deletion Groups’/’Attachment Deletion Users’ to the model, you can alternatively add the model in the ‘Attachment Deletion Models’ tab in the respective group/user form.

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

  • Quartile

  • Akretion

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.

Current maintainers:

yostashiro Kev-Roche

This module is part of the OCA/server-tools project on GitHub.

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file odoo_addon_attachment_delete_restrict-18.0.1.0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for odoo_addon_attachment_delete_restrict-18.0.1.0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9795b2e8f963d1e6e0f6521306272f6f1dbf14ad33833fa6c1cfa85802c7ad54
MD5 590d47d881a7fc6c8b416ed32eba6e18
BLAKE2b-256 0d1e977bc128c848c2e66907610c0cb21bd50c9ce00e3293b541d3c64defcf8d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page