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.project

Compute Method: _compute_allowed_internal_user_ids

View 20.0
Inputs Method Outputs
  • company_id
  • allowed_internal_user_ids
  • user_id
  • privacy_visibility
+ for project in self:
+             if project.company_id and project.allowed_internal_user_ids:
+                 project.allowed_internal_user_ids = project.allowed_internal_user_ids.filtered(
+                     lambda u: project.company_id in u.company_ids._origin
+                 )
+             if project.user_id and project.privacy_visibility in ['followers', 'invited_users']:
+                 project.allowed_internal_user_ids |= project.user_id
  • allowed_internal_user_ids

Back to entity