[MIG] document_page_access_group_user_role: Migration to 18.0

This commit is contained in:
Anusha
2025-05-08 11:14:57 +02:00
parent cb89126ca2
commit 3aa9cc5350
4 changed files with 5 additions and 18 deletions

View File

@@ -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")