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

Module: Sales Teams

Entity: crm.team

Compute Method: _compute_member_company_ids

Inputs Method Outputs
""" Available companies for members. Either team company if set, either
        any company if not set on team. """
all_companies = self.env['res.company'].search([])
for team in self:
            team.member_company_ids = team.company_id or all_companies

Back to entity