mirror of
https://github.com/OCA/knowledge.git
synced 2025-12-19 11:52:18 -06:00
[ADD]document_page_access_group: Add access groups to document pages
This commit is contained in:
4
document_page_access_group/models/__init__.py
Normal file
4
document_page_access_group/models/__init__.py
Normal 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
|
||||
10
document_page_access_group/models/document_page.py
Normal file
10
document_page_access_group/models/document_page.py
Normal 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")
|
||||
Reference in New Issue
Block a user