fix: batchst g_create bug

This commit is contained in:
caoqianming 2025-03-25 09:48:17 +08:00
parent 6f28056ed4
commit 52b96dc740
1 changed files with 1 additions and 1 deletions

View File

@ -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