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: res.users

Compute Method: _compute_primary_calendar

View 20.0
Inputs Method Outputs
  • calendar_user_ids
+ for user in self:
+             user.primary_calendar_id = user.calendar_user_ids.filtered(
+                 lambda l: l.is_primary and l.access_role == 'owner').calendar_id
  • primary_calendar_id

Back to entity