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_hours_per_week

View 19.0
Inputs Method Outputs
+ """ Compute the average hours per week """
+ for calendar in self.filtered(lambda c: not c.flexible_hours):
+             calendar.hours_per_week = float_round(calendar._get_hours_per_week(), precision_digits=2)
  • hours_per_week

Back to entity