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

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

Back to entity