test init bug
This commit is contained in:
parent
7e43f76112
commit
464f1930fc
|
@ -213,7 +213,7 @@ class WProductViewSet(ListModelMixin, RetrieveModelMixin, GenericViewSet):
|
||||||
elif wproduct.act_state == WProduct.WPR_ACT_STATE_TOCOMBTEST:
|
elif wproduct.act_state == WProduct.WPR_ACT_STATE_TOCOMBTEST:
|
||||||
savedict['type'] = TestRecord.TEST_COMB
|
savedict['type'] = TestRecord.TEST_COMB
|
||||||
elif wproduct.act_state == WProduct.WPR_ACT_STATE_TOTEST:
|
elif wproduct.act_state == WProduct.WPR_ACT_STATE_TOTEST:
|
||||||
step, need_test, _ = WpmService.get_step_info(wproduct.subproduction_plan, wproduct.step, get_next=False)
|
step, need_test, _ = WpmService.get_step_info(wproduct.subproduction_plan, wproduct.pre_step, get_next=False)
|
||||||
if need_test and wproduct.step != step:
|
if need_test and wproduct.step != step:
|
||||||
savedict['is_midtesting'] = True
|
savedict['is_midtesting'] = True
|
||||||
# if UsedStep.objects.filter(subproduction=wproduct.subproduction_plan.subproduction).first().need_test:
|
# if UsedStep.objects.filter(subproduction=wproduct.subproduction_plan.subproduction).first().need_test:
|
||||||
|
|
Loading…
Reference in New Issue