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