This commit is contained in:
曹前明 2022-06-22 14:35:42 +08:00
parent af3f487af1
commit 38096a9efe
1 changed files with 1 additions and 1 deletions

View File

@ -213,7 +213,7 @@ class WProductViewSet(ListModelMixin, RetrieveModelMixin, GenericViewSet):
elif wproduct.act_state == WProduct.WPR_ACT_STATE_TOCOMBTEST:
savedict['type'] = TestRecord.TEST_COMB
elif wproduct.act_state == WProduct.WPR_ACT_STATE_TOTEST:
if UsedStep.objects.filter(subproduction=wproduct.subproduction_plan.suproduction).first().need_test:
if UsedStep.objects.filter(subproduction=wproduct.subproduction_plan.subproduction).first().need_test:
savedict['is_midtesting'] = True
tr = TestRecord.objects.create(**savedict)
# 更新wproduct