From 01c75aa18ad7a6e1ffbb5c02f30513746e84ee85 Mon Sep 17 00:00:00 2001 From: Zambu Date: Tue, 1 Mar 2016 17:14:10 +0100 Subject: [PATCH] [8.0] mrp_operations_extension: Remove write state 'action_start_working' Modify state on WO it isn't necessary at all because the mrp_operations changes the state to in_production through the workflow. --- mrp_operations_extension/models/mrp_production.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/mrp_operations_extension/models/mrp_production.py b/mrp_operations_extension/models/mrp_production.py index cf1bc9b6b..3f3b53397 100644 --- a/mrp_operations_extension/models/mrp_production.py +++ b/mrp_operations_extension/models/mrp_production.py @@ -133,6 +133,4 @@ 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()