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.attendance

Compute Method: _compute_hours

View 19.0 View 20.0
Inputs Method Outputs
  • duration_based
+ for attendance in self:
+             if attendance.duration_based:
+                 attendance.hour_from = attendance.hour_to = 0
  • hour_from
  • hour_to

Back to entity