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 20.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.date() < datetime.date.today() or record.date_deadline.date() < record.date_finished.date()))
+             )
+             record.is_due_today = bool(
+                 record.state in ['confirmed', 'progress', 'to_close'] and (
+                     record.date_deadline and (record.date_deadline.date() == datetime.date.today()))
+             )
  • is_delayed
  • is_due_today

Back to entity