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

Module: Calendar

Entity: calendar.recurrence

Compute Method: _compute_dtstart

Inputs Method Outputs
  • id
groups = self.env['calendar.event']._read_group([('recurrence_id', 'in', self.ids)], ['recurrence_id'], ['start:min'])
start_mapping = {recurrence.id: start_min for recurrence, start_min in groups}
for recurrence in self:
            recurrence.dtstart = start_mapping.get(recurrence.id)

Back to entity