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

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

Back to entity