[ADD]document_page_access_group: Add access groups to document pages

This commit is contained in:
manu
2022-05-09 16:09:03 +02:00
committed by Alberto Martínez
parent d9562de03b
commit 6f9a23f99e
10 changed files with 94 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
# Copyright 2022 Manuel Regidor <manuel.regidor@sygel.es>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from . import document_page

View File

@@ -0,0 +1,10 @@
# Copyright 2022 Manuel Regidor <manuel.regidor@sygel.es>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models
class DocumentPage(models.Model):
_inherit = "document.page"
groups_id = fields.Many2many(comodel_name="res.groups", string="Groups")