diff --git a/apps/wpm/services.py b/apps/wpm/services.py index e31eb6c4..b9dd0862 100644 --- a/apps/wpm/services.py +++ b/apps/wpm/services.py @@ -772,10 +772,10 @@ def handover_submit(handover:Handover, user: User, now: Union[datetime.datetime, # 返修交接 recive_mgroup = handover.recive_mgroup if recive_mgroup: - if recive_mgroup.process == Process.PRO_TEST: - wm_state = WMaterial.WM_REPAIRED - else: - wm_state = WMaterial.WM_REPAIR + # if recive_mgroup.process.type == Process.PRO_TEST: + # wm_state = WMaterial.WM_REPAIRED + # else: + wm_state = WMaterial.WM_REPAIR wm_to, _ = WMaterial.objects.get_or_create( batch=batch, material=material,