TIP: You can type at any time to perform a new search.
Restrict Deletion of Attachments
attachment_delete_restrict · OCA/server-tools
- Repository
- OCA/server-tools · module folder · Try on Runboat
- Module version
- 1.0.0
- Category
- Tools
- Folder size
- 0.12 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/server-tools
- Last tracking update
- 2026-08-07 08:42:58
- Authors
- Akretion, Odoo Community Association (OCA), Quartile
- Maintainers
- Akretion, Odoo Community Association (OCA), Quartile
- Committers
- Aungkokolin1997, OCA-git-bot, oca-ci
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
- Description
This module provides the ability to restrict the deletion of the attachments at different levels.
Code Analysis ⓘ
Views touched (4)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
res_config_settings_view_form |
res.config.settings.attachment.delete.restrict | res.config.settings | form | Inherits base_setup.res_config_settings_view_form |
view_groups_form |
res.groups.form | res.groups | form | Inherits base.view_groups_form |
view_model_form |
ir.model form | ir.model | form | Inherits base.view_model_form |
view_users_form |
res.users.form | res.users | form | Inherits base.view_users_form |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (5)
New fields (0)
No new fields.
Public methods (1)-
unlink(self)
New fields (3)
-
delete_attachment_group_idsMany2many → res.groupshelp='The users in the groups selected here can delete the attachments related to this model.'relation='delete_attachment_group_rel'string='Attachment Deletion Groups' args: 'res.groups' -
delete_attachment_user_idsMany2many → res.usershelp='The users selected here can delete the attachments related to this model.'relation='delete_attachment_user_rel'string='Attachment Deletion Users' args: 'res.users' -
restrict_delete_attachmentSelectiondefault='default'help='When selected, the deletion of the attachments related to this model is restricted to certain users.'selection=RESTRICT_DELETE_ATTACHstring='Restrict Attachment Deletion'
No public methods.
New fields (3)
-
global_delete_attachment_group_idsMany2many → res.groupscompute='_compute_global_delete_attachment_group_ids'compute_sudo=Truehelp='The users in the groups selected here can delete all the attachments.'inverse='_inverse_global_delete_attachment_group_ids'readonly=Falsestring='Attachment Deletion Groups' args: 'res.groups' -
global_delete_attachment_user_idsMany2many → res.userscompute='_compute_global_delete_attachment_user_ids'compute_sudo=Truehelp='The users selected here can delete all the attachments'inverse='_inverse_global_delete_attachment_user_ids'readonly=Falsestring='Attachment Deletion Users' args: 'res.users' -
global_restrict_delete_attachmentSelectionconfig_parameter='attachment_delete_restrict.global_restrict_delete_attachment'default='none'help='Define a default value for Attachments Deletion'readonly=Falserequired=Trueselection=<expr>string='Restrict Delete Attachments'
No public methods.
New fields (1)
-
delete_attachment_model_idsMany2many → ir.modelhelp="The users of the group can delete the attachments related to the models assigned here. Restrict Attachment Deletion must be'Custom' or 'Owner + Custom' for the model to be selected here."relation='delete_attachment_group_rel'string='Attachment Deletion Models' args: 'ir.model'
No public methods.
New fields (1)
-
delete_attachment_model_idsMany2many → ir.modelhelp="The user can delete the attachments related to the models assigned here. Restrict Attachment Deletion must be'Custom' or 'Owner + Custom' for the model to be selected here."relation='delete_attachment_user_rel'string='Attachment Deletion Models' args: 'ir.model'
No public methods.
Loading…
Loading…
Loading…
- Status
- Open migration PR — not merged yet for this version
- CI status
- green — ready to merge
- Open since
- 370 days ago
- Last activity
- 51 days ago
- Repository
- OCA/server-tools
- Pull request
- [17.0][MIG] attachment_delete_restrict: Migration to 17.0 (#3347)
- Status
- Open migration PR — not merged yet for this version
- CI status
- checks failing
- Open since
- 325 days ago
- Last activity
- 59 days ago
- Repository
- OCA/server-tools
- Pull request
- [19.0][MIG] attachment_delete_restrict: Migration to 19.0 (#3398)