Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Document Page Access Group User Role

Entity: document.page

Compute Method: _compute_user_ids

Inputs Method Outputs
"""compute to auto-set all the users of the related roles."""
for item in self:
            item.user_ids += item.mapped("role_ids.user_ids")

Back to entity