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

Compute Method: _compute_event_end_date

View 18.0
Inputs Method Outputs
  • use_sessions
  • session_id
  • session_id.date_end
  • event_id
  • event_id.date_end
- for rec in self:
-             if rec.use_sessions:
-                 rec.event_end_date = rec.session_id.date_end
-             else:
-                 rec.event_end_date = rec.event_id.date_end
  • event_end_date

Back to entity