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_has_conflicts

Inputs Method Outputs
  • id
self.has_conflicts = False
wos = self.filtered(lambda w: w.date_start and w.date_finished and w.state in ('blocked', 'ready'))
if wos.ids:
            conflicted_dict = wos._get_conflicted_workorder_ids()
            for wo in wos:
                if conflicted_dict.get(wo.id):
                    wo.has_conflicts = True

Back to entity