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

Compute Method: _compute_calendar_id

View 20.0
Inputs Method Outputs
  • user_id
  • calendar_id
  • calendar_id.owner_id
+ for event in self:
+             if event.user_id != event.calendar_id.owner_id:
+                 event.calendar_id = event.user_id._find_or_create_primary_calendar() if event.user_id else False
  • calendar_id

Back to entity