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

View 20.0
Inputs Method Outputs
  • assignment_max
+ 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
  • show_assignment_max

Back to entity