Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Resource

Entity: resource.calendar

Compute Method: _compute_attendance_ids

Inputs Method Outputs
for calendar in self:
            calendar_changed = calendar._origin and calendar._origin.company_id != calendar.company_id
            if (not calendar.id or calendar_changed) and calendar.calendar_type == "fixed" and not calendar.attendance_ids:
                calendar.attendance_ids = calendar._get_default_attendance_ids(calendar.company_id)

Back to entity