From 5dfb903c4ab678f9b94d233a4f148927f4b54d7c Mon Sep 17 00:00:00 2001 From: caoqianming Date: Wed, 17 Dec 2025 15:59:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20handoverserializer=20=E5=85=B3=E4=BA=8En?= =?UTF-8?q?ew=5Fwm=E7=9A=84=E5=A4=84=E7=90=864?= 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 4f9cc43a..b9dea08d 100644 --- a/apps/wpm/services.py +++ b/apps/wpm/services.py @@ -871,7 +871,7 @@ def handover_submit(handover:Handover, user: User, now: Union[datetime.datetime, elif handover.type == Handover.H_CHANGE: if mtype == Handover.H_MERGE and handover.new_wm: wm_to = handover.new_wm - if wm_to.material != handover.material_changed or wm_to.state != handover.state_changed or wm_to.defect != wm_from.defect: + if wm_to.material != handover.material_changed or wm_to.state != handover.state_changed: raise ParseError("改版合并到的车间库存状态或物料异常") elif handover.recive_mgroup: wm_to, _ = WMaterial.objects.get_or_create(