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: mail.activity.mixin

Compute Method: _compute_activity_calendar_event_id

Inputs Method Outputs
  • activity_ids
"""This computes the calendar event of the next activity.
        It evaluates to false if there is no such event."""
for record in self:
            activities = record.activity_ids
            activity = next(iter(activities), activities)
            record.activity_calendar_event_id = activity.calendar_event_id

Back to entity