去除消耗物料限制
This commit is contained in:
parent
2d834246fa
commit
bf1f2ab4e9
|
@ -660,8 +660,9 @@ class OperationViewSet(ListModelMixin, RetrieveModelMixin, CreateModelMixin, Upd
|
||||||
if set(list(sps_omi_l)) != set(list(sps_omo_l)):
|
if set(list(sps_omi_l)) != set(list(sps_omo_l)):
|
||||||
raise exceptions.APIException('消耗与产出不一致')
|
raise exceptions.APIException('消耗与产出不一致')
|
||||||
else:
|
else:
|
||||||
if omis.exists() and processId !=1: # 不是冷加工
|
pass
|
||||||
raise exceptions.APIException('请选择消耗物料')
|
# if omis.exists() and processId !=1: # 不是冷加工
|
||||||
|
# raise exceptions.APIException('请选择消耗物料')
|
||||||
|
|
||||||
# 检查自定义表单填写
|
# 检查自定义表单填写
|
||||||
if OperationRecord.objects.filter(operation=op, is_filled=False).exists():
|
if OperationRecord.objects.filter(operation=op, is_filled=False).exists():
|
||||||
|
|
Loading…
Reference in New Issue