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

Compute Method: _compute_scheduled_date

View 17.0 View 20.0
Inputs Method Outputs
  • registration_id
  • registration_id.create_date
  • scheduler_id
  • scheduler_id.interval_unit
  • scheduler_id.interval_nbr
for mail in self:
            if mail.registration_id:
                mail.scheduled_date = mail.registration_id.create_date.replace(microsecond=0) + _INTERVALS[mail.scheduler_id.interval_unit](mail.scheduler_id.interval_nbr)
            else:
                mail.scheduled_date = False
  • scheduled_date

Back to entity