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_effective_privacy

View 20.0
Inputs Method Outputs
  • user_id
  • privacy
+ for event in self:
+             event.effective_privacy = (event.privacy
+                                        or event.sudo().calendar_id.calendar_default_privacy
+                                        or event.user_id._find_or_create_primary_calendar().calendar_default_privacy if event.user_id else 'public')
  • effective_privacy

Back to entity