From 7a3534f8e418e252c91a409d7acf3ba462e013a6 Mon Sep 17 00:00:00 2001 From: liaodanlong Date: Mon, 24 Feb 2025 16:39:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BD=93=E5=89=8D=E5=B7=A5=E5=8D=95=E4=B8=8B?= =?UTF-8?q?=E4=B8=80=E5=BC=A0=E5=B7=A5=E5=8D=95=E4=B8=BA=E8=A1=A8=E9=9D=A2?= =?UTF-8?q?=E5=B7=A5=E8=89=BA=E6=97=B6=E4=B8=8D=E6=98=BE=E7=A4=BA=E5=9B=9E?= =?UTF-8?q?=E9=80=80=E6=8C=89=E9=92=AE=E9=97=AE=E9=A2=98=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sf_manufacturing/models/mrp_workorder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sf_manufacturing/models/mrp_workorder.py b/sf_manufacturing/models/mrp_workorder.py index d86578e5..82c1a5b2 100644 --- a/sf_manufacturing/models/mrp_workorder.py +++ b/sf_manufacturing/models/mrp_workorder.py @@ -109,7 +109,7 @@ class ResMrpWorkOrder(models.Model): next_workorder = sorted_workorders[position + 1] next_state = next_workorder.state if (next_state == 'ready' or ( - next_workorder.state == 'pending' and next_workorder.is_subcontract)) and cur_workorder.state == 'done': + next_workorder.state == 'waiting' and next_workorder.is_subcontract)) and cur_workorder.state == 'done': record.back_button_display = True else: record.back_button_display = False