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

Module: Manufacturing

Entity: mrp.workorder

Compute Method: _compute_dates

View 19.0 View 20.0
Inputs Method Outputs
  • leave_id
  • leave_id.date_from
  • leave_id.date_to
for workorder in self:
            workorder.date_start = workorder.leave_id.date_from
            workorder.date_finished = workorder.leave_id.date_to
  • date_start
  • date_finished

Back to entity