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_calendar_user

Inputs Method Outputs
""" Gets the calendar user record for the current user, if present."""
for calendar in self:
            calendar.calendar_user_id = calendar.calendar_user_ids.filtered(lambda c: c.user_id == self.env.user)

Back to entity