mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-18 15:32:06 +02:00
17 lines
589 B
Python
17 lines
589 B
Python
# Copyright 2021 Quartile Limited
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
|
|
from odoo import fields, models
|
|
|
|
|
|
class ResGroups(models.Model):
|
|
_inherit = "res.groups"
|
|
|
|
delete_attachment_model_ids = fields.Many2many(
|
|
"ir.model",
|
|
relation="delete_attachment_group_rel",
|
|
string="Attachment Deletion Models",
|
|
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.",
|
|
)
|