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

Module: Work Entries

Entity: hr.work.entry

Compute Method: _compute_duration

Inputs Method Outputs
  • id
durations = self._get_duration_batch()
for work_entry in self:
            work_entry.duration = durations[work_entry.id]

Back to entity