From ce7183ff178f6aae93f1769860fb56744221731b Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 9 Jan 2025 17:02:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=B8=8D=E6=94=AF=E6=8C=81=E6=B6=88?= =?UTF-8?q?=E8=80=97=E7=89=A9=E6=96=99=E7=9A=84=E6=A3=80=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/wpm/services.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/wpm/services.py b/apps/wpm/services.py index 279e76a1..8fc7720f 100644 --- a/apps/wpm/services.py +++ b/apps/wpm/services.py @@ -203,7 +203,7 @@ def mlog_submit(mlog: Mlog, user: User, now: Union[datetime.datetime, None]): if mlogbws.count() != mi_count: raise ParseError("日志与明细数量不一致,操作失败") for item in mlogbws: - if item.test: + if item.ftest: raise ParseError("不支持消耗物料的检验") Wpr.change_or_new(wpr=item.wpr, old_wm=wm)