OdooMindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.
for calendar in self:
if calendar.flexible_hours:
continue
attendances = calendar._get_global_attendances()
calendar.hours_per_day = calendar._get_hours_per_day(attendances)