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

Compute Method: _compute_share_user_ids

View 20.0
Inputs Method Outputs
  • calendar_user_ids
+ for calendar in self:
+             # Do not include the owner in this list, as we do not want the user to be able to remove themselves.
+             # Doing so could lead to accidental cascade deletion of the calendar
+             calendar.share_user_ids = calendar.calendar_user_ids.filtered(lambda cu: cu.access_role != 'owner').user_id
  • share_user_ids

Back to entity