staging move state should fail assignation

issue4462
review13871002
This commit is contained in:
Cédric Krier committed 2015-01-09 19:06:36 +01:00
1 parent 1014cf5400
commit 0a4c95ee08
1 file changed
+2
+2
View File
@@ -779,6 +779,8 @@ class Move(Workflow, ModelSQL, ModelView):
success = True
for move in moves:
if move.state != 'draft':
if move.state == 'staging':
success = False
continue
to_location = move.to_location
location_qties = {}