Skip to content

Commit

Permalink
Merge pull request #117 from OCA/revert-103-8.0-rm_write_mo_state
Browse files Browse the repository at this point in the history
Revert "[8.0] mrp_operations_extension: Remove write MO's state on 'action_start_working'"
  • Loading branch information
pedrobaeza committed Apr 18, 2016
2 parents 52f09a3 + d288278 commit a1ddba3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mrp_operations_extension/models/mrp_production.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,4 +133,6 @@ def action_start_working(self):
['assigned', 'cancel', 'done']):
raise exceptions.Warning(
_("Missing materials to start the production"))
if workorder.production_id.state in ('confirmed', 'ready'):
workorder.production_id.state = 'in_production'
return super(MrpProductionWorkcenterLine, self).action_start_working()

0 comments on commit a1ddba3

Please sign in to comment.