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
| Inputs | Method | Outputs |
|---|---|---|
|
- """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 |
|
