From 52b96dc7405bb2c86b5118a5ca62e71465bc954c Mon Sep 17 00:00:00 2001 From: caoqianming Date: Tue, 25 Mar 2025 09:48:17 +0800 Subject: [PATCH] fix: batchst g_create bug --- 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 87b04bc9..bc3877df 100644 --- a/apps/wpm/services.py +++ b/apps/wpm/services.py @@ -722,7 +722,7 @@ def handover_submit(handover:Handover, user: User, now: Union[datetime.datetime, if create_new_batch is False: target, _ = BatchSt.g_create(batch=batch, handover=handover, material_start=material) create_new_batch = True - source, _ = BatchLog.g_create(batch=wm_from.batch) + source, _ = BatchSt.g_create(batch=wm_from.batch) BatchLog.g_create(source=source, target=target, handover=handover, relation_type="merge") elif mtype == Handover.H_DIV: batch = handover_or_b.batch