This module provides the ability to restrict the deletion of the attachments at different levels.
Table of contents
- Go to Settings > General Settings> Permission section.
- Choose the level of Restrict Delete Attachment for all models by default or for models with "default" restriction level.
- Default : Use global configuration
- Owner : Owner and admins only
- Custom : Certain groups or users per related model.
- Owner + Strict : Owner, admins and Certain groups or users per related model.
- None : all users can delete them
Only Owner and Custom + Strict need specific configuration on models.
- Go to Settings > Technical > Database Structure > Models.
- Open a model for which attachment deletion should be restricted.
- 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.
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 smashing it by providing a detailed and welcomed feedback.
Do not contact contributors directly about support or help with technical issues.
- Quartile Limited
- Akretion
- Yoshi Tashiro <[email protected]>
- Kévin Roche <[email protected]>
- Sébastien BEAU <[email protected]>
This module is maintained by the OCA.
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:
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.