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

Compute Method: _compute_is_delayed

View 19.0
Inputs Method Outputs
  • state
  • date_deadline
  • date_finished
+ for record in self:
+             record.is_delayed = bool(
+                 record.state in ['confirmed', 'progress', 'to_close'] and (
+                     record.date_deadline and (record.date_deadline < datetime.datetime.now() or record.date_deadline < record.date_finished))
+             )
  • is_delayed

Back to entity