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.event

Compute Method: _compute_is_ongoing

Inputs Method Outputs
now = fields.Datetime.now()
for event in self:
            event.is_ongoing = event.date_begin <= now < event.date_end

Back to entity