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_privacy_placeholder

View 20.0
Inputs Method Outputs
  • effective_privacy
+ privacy_selection_dict = dict(self._fields['effective_privacy']._description_selection(self.env))
+ for event in self:
+             event.privacy_placeholder = privacy_selection_dict.get(event.effective_privacy, _('User default'))
  • privacy_placeholder

Back to entity