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

Module: Advanced Events

Entity: event.track

Compute Method: _compute_date

Inputs Method Outputs
for track in self:
            if track.date_end:
                delta = timedelta(minutes=60 * track.duration)
                track.date = track.date_end - delta
            else:
                track.date = False

Back to entity