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

Module: Events Organization

Entity: event.slot

Compute Method: _compute_is_sold_out

View 20.0
Inputs Method Outputs
  • event_id
  • event_id.seats_limited
  • seats_available
+ for slot in self:
+             slot.is_sold_out = slot.event_id.seats_limited and not slot.seats_available
  • is_sold_out

Back to entity