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_duration_based

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

Back to entity