Skip to content
Health
67/100
fair
  • Security25/25
    No findings
  • Activity12/25
    Last human commit 16 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity25/25
    In 4 Odoo series since 12.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.12 MB
Module directory on disk
Code analysis 0 migration notes 5 models 4 views 0 HTTP endpoints

Description

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

Dependencies

Odoo dependencies
odoo/odoo:
- web
Python dependencies
None
System dependencies
None
Required by
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 4

XML IDNameModelTypeStatus
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_ids Many2many → res.groups
    help='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_ids Many2many → res.users
    help='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_attachment Selection
    default='default' help='When selected, the deletion of the attachments related to this model is restricted to certain users.' selection=RESTRICT_DELETE_ATTACH string='Restrict Attachment Deletion'
Public methods (0)

No public methods.

New fields (3)
  • global_delete_attachment_group_ids Many2many → res.groups
    compute='_compute_global_delete_attachment_group_ids' compute_sudo=True help='The users in the groups selected here can delete all the attachments.' inverse='_inverse_global_delete_attachment_group_ids' readonly=False string='Attachment Deletion Groups' args: 'res.groups'
  • global_delete_attachment_user_ids Many2many → res.users
    compute='_compute_global_delete_attachment_user_ids' compute_sudo=True help='The users selected here can delete all the attachments' inverse='_inverse_global_delete_attachment_user_ids' readonly=False string='Attachment Deletion Users' args: 'res.users'
  • global_restrict_delete_attachment Selection
    config_parameter='attachment_delete_restrict.global_restrict_delete_attachment' default='none' help='Define a default value for Attachments Deletion' readonly=False required=True selection=<expr> string='Restrict Delete Attachments'
Public methods (0)

No public methods.

New fields (1)
  • delete_attachment_model_ids Many2many → ir.model
    help="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'
Public methods (0)

No public methods.

New fields (1)
  • delete_attachment_model_ids Many2many → ir.model
    help="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'
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…