Skip to content
Snippets Groups Projects
Commit 40603879 authored by Simon Lejeune's avatar Simon Lejeune
Browse files

[REF] mrp: start next workorder (community)

task-2241471
parent b435508f
No related branches found
No related tags found
No related merge requests found
......@@ -761,6 +761,11 @@ class MrpWorkorder(models.Model):
if not workorder.date_planned_start or end_date < workorder.date_planned_start:
vals['date_planned_start'] = end_date
workorder.write(vals)
# Community-only: without quality checks, finishing a workorder should
# start the next one.
if not workorder._fields.get('check_ids'):
workorder._start_nextworkorder()
return True
def end_previous(self, doall=False):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment