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

Module: Project

Entity: project.task

Compute Method: _compute_project_sharing_portal_user_ids

Inputs Method Outputs
for task in self:
            if not task.project_id:
                task.project_sharing_portal_user_ids = False
                continue
            valid_collabs = task.project_id.sudo().collaborator_ids.filtered(
                lambda c: c.access_mode in ['edit', 'advanced_edit']
            )
            task.project_sharing_portal_user_ids = valid_collabs.mapped('partner_id.user_ids').filtered('share')

Back to entity