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

Compute Method: _compute_assignment_rules

View 20.0
Inputs Method Outputs
  • assignment_max
+ for member in self:
+             if member.assignment_max >= MEMBER_MAX_LEAD_ASSIGNMENT_QUOTA:
+                 member.assignment_rules = 'unlimited'
+             elif member.assignment_max == 0:
+                 member.assignment_rules = 'opt-out'
+             else:
+                 member.assignment_rules = 'limited'
  • assignment_rules

Back to entity