mirror of
https://github.com/OCA/knowledge.git
synced 2025-12-19 11:52:18 -06:00
[MIG] document_page_access_group_user_role: Migration to 18.0
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user