From 4c8cf5caf86e486e608eb9b8d0107b14f0b39e7e Mon Sep 17 00:00:00 2001 From: liaodanlong Date: Fri, 28 Feb 2025 16:36:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=B6=E9=80=A0=E8=AE=A2=E5=8D=95=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E4=B8=BA=E8=BF=94=E5=B7=A5=E6=97=B6=E9=99=90=E5=88=B6?= =?UTF-8?q?=E8=A1=A8=E9=9D=A2=E5=B7=A5=E8=89=BA=E5=B7=A5=E5=8D=95=E7=8A=B6?= =?UTF-8?q?=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sf_manufacturing/models/mrp_workorder.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sf_manufacturing/models/mrp_workorder.py b/sf_manufacturing/models/mrp_workorder.py index 8470530c..6d05e66c 100644 --- a/sf_manufacturing/models/mrp_workorder.py +++ b/sf_manufacturing/models/mrp_workorder.py @@ -1227,6 +1227,9 @@ class ResMrpWorkOrder(models.Model): lambda w: w.state not in ['done', 'cancel'])) == 0): # and workorder.production_id.programming_state == '已编程' if workorder.is_subcontract is True: + if workorder.production_id.state == 'rework': + workorder.state = 'waiting' + continue purchase_orders_id = self._get_surface_technics_purchase_ids() if purchase_orders_id.state == 'purchase': workorder.state = 'ready'