From f4f17fd2b8735fca6db7dbada05f5e7361c21ca6 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Tue, 14 Jan 2025 08:52:16 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20handover=20submit=E5=90=88=E5=B9=B6?= =?UTF-8?q?=E6=89=B9=E6=AC=A1bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/wpm/services.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/wpm/services.py b/apps/wpm/services.py index 208bcfb5..556a472d 100644 --- a/apps/wpm/services.py +++ b/apps/wpm/services.py @@ -686,6 +686,7 @@ def handover_submit(handover: Handover, user: User, now: Union[datetime.datetime mgroup=recive_mgroup, belong_dept=recive_dept, notok_sign=wm_from.notok_sign, + defect=wm_from.defect, material_origin=material, state=WMaterial.WM_REPAIR, defaults={ @@ -718,6 +719,7 @@ def handover_submit(handover: Handover, user: User, now: Union[datetime.datetime mgroup=recive_mgroup, belong_dept=recive_dept, notok_sign=wm_from.notok_sign, + defect=wm_from.defect, state=WMaterial.WM_SCRAP, defaults={ "batch_ofrom": wm_from.batch_ofrom,