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

Module: Event Sessions

Entity: event.session

Compute Method: _compute_event_registrations_sold_out

Inputs Method Outputs
"""Similar to core method:`event_event._compute_event_registrations_sold_out`"""
for rec in self:
            rec.event_registrations_sold_out = (
                rec.seats_limited and rec.seats_max and not rec.seats_available
            ) or (
                rec.event_ticket_ids
                and all(ticket.is_sold_out for ticket in rec.event_ticket_ids)
            )

Back to entity