From cbedb81b0eb6d1f242349c0a66283bb37b3b4ce0 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 1 Aug 2024 16:54:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20mlogbin=20=E4=B8=8D=E5=90=88=E6=A0=BC?= =?UTF-8?q?=E7=89=A9=E6=96=99=E6=A0=A1=E9=AA=8C=E5=8E=BB=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/wpm/serializers.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/apps/wpm/serializers.py b/apps/wpm/serializers.py index cb0a08d6..107c2f76 100644 --- a/apps/wpm/serializers.py +++ b/apps/wpm/serializers.py @@ -382,8 +382,6 @@ class MlogbInSerializer(CustomModelSerializer): mlog: Mlog = attrs['mlog'] mtask: Mtask = attrs['mtask'] wm_in: WMaterial = attrs['wm_in'] - if wm_in.notok_sign is not None: - raise ValidationError('不合格物料不可使用') if mlog.route != mtask.route: raise ValidationError('工序不匹配') route = mlog.route