wpm mtest bug
This commit is contained in:
parent
a5494e8509
commit
16fb06f646
|
@ -399,7 +399,7 @@ class WProductViewSet(ListModelMixin, RetrieveModelMixin, GenericViewSet):
|
||||||
军检
|
军检
|
||||||
"""
|
"""
|
||||||
obj = self.get_object()
|
obj = self.get_object()
|
||||||
if obj.is_mtestok is None:
|
if obj.is_mtestok is not None:
|
||||||
raise exceptions.APIException('已进行军检')
|
raise exceptions.APIException('已进行军检')
|
||||||
if obj.material.type != Material.MA_TYPE_GOOD:
|
if obj.material.type != Material.MA_TYPE_GOOD:
|
||||||
raise exceptions.APIException('军检必须是成品')
|
raise exceptions.APIException('军检必须是成品')
|
||||||
|
|
Loading…
Reference in New Issue