如果有正在进行的工序中检验 bug
This commit is contained in:
parent
5771e6d555
commit
242c311490
|
|
@ -713,6 +713,10 @@ class OperationViewSet(ListModelMixin, RetrieveModelMixin, CreateModelMixin, Upd
|
|||
wp.act_state = WProduct.WPR_ACT_STATE_DOWAIT
|
||||
if needTest:
|
||||
wp.act_state = WProduct.WPR_ACT_STATE_TOTEST
|
||||
if wp.test:# 如果有正在进行的工序中检验
|
||||
wp.test.is_midtesting = False
|
||||
wp.test.is_submited = False
|
||||
wp.test.save()
|
||||
|
||||
wp.operation = None
|
||||
wp.update_by = request.user
|
||||
|
|
|
|||
Loading…
Reference in New Issue