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_date_stop

View 18.0
Inputs Method Outputs
  • date_start
  • duration
- for work_entry in self.filtered(lambda w: w.date_start and w.duration):
-             work_entry.date_stop = work_entry.date_start + relativedelta(hours=work_entry.duration)
  • date_stop

Back to entity