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_is_ongoing

View 18.0
Inputs Method Outputs
  • date_begin
  • date_end
- """Similar to core's :meth:`event_event._compute_is_ongoing`"""
- now = fields.Datetime.now()
- for rec in self:
-             rec.is_ongoing = rec.date_begin <= now < rec.date_end
  • is_ongoing

Back to entity