update_wproduct_by_test 修改
This commit is contained in:
parent
1bb89ee1d9
commit
24d2f864af
|
@ -62,4 +62,5 @@ class WpmServies(object):
|
|||
wproduct.act_state = WProduct.WPR_ACT_STATE_NOTOK
|
||||
# 需要走不合格品审理的工单
|
||||
wproduct.update_by = user
|
||||
wproduct.test = None
|
||||
wproduct.save()
|
|
@ -258,7 +258,7 @@ class WProductViewSet(ListModelMixin, GenericViewSet):
|
|||
tris.append(TestRecordItem(**m))
|
||||
TestRecordItem.objects.bulk_create(tris)
|
||||
|
||||
# 如果检测合格, 变更动态产品进行状态
|
||||
# 如果提交检验
|
||||
if obj.is_submited:
|
||||
WpmServies.update_wproduct_by_test(obj, request.user)
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue