mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
Revert "[8.0] mrp_operations_extension: Remove write MO's state on 'action_start_working'"
This commit is contained in:
@@ -133,4 +133,6 @@ class MrpProductionWorkcenterLine(models.Model):
|
||||
['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()
|
||||
|
||||
Reference in New Issue
Block a user