mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-22 20:12:04 -06:00
[MIG] document_page_access_group_user_role: Migration to 18.0
This commit is contained in:
parent
9fc958f6ac
commit
7314e363cd
@ -4,7 +4,7 @@
|
||||
"name": "Document Page Access Group User Role",
|
||||
"author": "Tecnativa, Odoo Community Association (OCA)",
|
||||
"website": "https://github.com/OCA/knowledge",
|
||||
"version": "16.0.1.1.0",
|
||||
"version": "18.0.1.0.0",
|
||||
"depends": ["document_page_access_group", "base_user_role"],
|
||||
"license": "AGPL-3",
|
||||
"category": "Knowledge",
|
||||
|
@ -18,6 +18,6 @@ class DocumentPage(models.Model):
|
||||
|
||||
@api.depends("role_ids", "role_ids.users")
|
||||
def _compute_user_ids(self):
|
||||
"""Create a compute to auto-set all the users of the related roles."""
|
||||
"""compute to auto-set all the users of the related roles."""
|
||||
for item in self:
|
||||
item.user_ids += item.mapped("role_ids.users")
|
||||
|
@ -12,14 +12,14 @@
|
||||
<group
|
||||
name="roles"
|
||||
string="Roles"
|
||||
attrs="{'invisible': [('groups_id','!=',[])]}"
|
||||
invisible="groups_id"
|
||||
groups="base.group_erp_manager"
|
||||
>
|
||||
<field name="role_ids" nolabel="1" colspan="2">
|
||||
<tree>
|
||||
<list>
|
||||
<field name="name" />
|
||||
<field name="comment" />
|
||||
</tree>
|
||||
</list>
|
||||
</field>
|
||||
</group>
|
||||
</group>
|
||||
|
Loading…
Reference in New Issue
Block a user