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

Module: CRM

Entity: crm.team

Compute Method: _compute_show_assignment_max

Inputs Method Outputs
for team in self:
            show_max = True
            for member in team.crm_team_member_ids:
                if member.assignment_max >= MEMBER_MAX_LEAD_ASSIGNMENT_QUOTA:
                    show_max = False

            team.show_assignment_max = show_max

Back to entity