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_date_deadline

View 17.0 View 20.0
Inputs Method Outputs
  • move_finished_ids
  • date_deadline
for production in self:
-             production.date_deadline = min(production.move_finished_ids.filtered('date_deadline').mapped('date_deadline'), default=production.date_deadline or False)
+             deadline = min(production.move_finished_ids.filtered('date_deadline').mapped('date_deadline'), default=False)
+             if deadline:
+                 production.date_deadline = deadline
  • date_deadline

Back to entity