待成品检验
This commit is contained in:
parent
1c0f184a37
commit
fa91eb88f2
|
@ -227,7 +227,7 @@ class WProductViewSet(ListModelMixin, GenericViewSet):
|
|||
if obj.is_testok:
|
||||
if wproduct.act_state == WProduct.WPR_ACT_STATE_TORETEST:
|
||||
wproduct.act_state = WProduct.WPR_ACT_STATE_DOWAIT # 复检
|
||||
elif wproduct.material == Material.MA_TYPE_GOOD:
|
||||
elif wproduct.material.type == Material.MA_TYPE_GOOD:
|
||||
wproduct.act_state = WProduct.WPR_ACT_STATE_TOFINALTEST # 成品检验
|
||||
else:
|
||||
wproduct.act_state = WProduct.WPR_ACT_STATE_OK
|
||||
|
|
Loading…
Reference in New Issue