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
| Inputs | Method | Outputs |
|---|---|---|
|
+ 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())) + ) |
|
