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

Module: Event CRM

Entity: event.registration

Compute Method: _compute_lead_count

View 18.0 View 20.0
Inputs Method Outputs
  • lead_ids
for record in self:
-             record.lead_count = len(record.lead_ids)
+             record.lead_count = len(record.with_context(active_test=False).lead_ids)
  • lead_count

Back to entity