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

Module: POS - Event

Entity: pos.order

Compute Method: _compute_attendee_count

View 20.0
Inputs Method Outputs
  • lines
+ for order in self:
+             order.attendee_count = len(order.lines.mapped('event_registration_ids'))
  • attendee_count

Back to entity