From 0cdf37bb50001c821584fb73e1f8c2d604f20e8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=83=A1=E5=B0=A7?= Date: Wed, 21 Aug 2024 16:20:45 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E5=90=8D=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sf_manufacturing/controllers/controllers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sf_manufacturing/controllers/controllers.py b/sf_manufacturing/controllers/controllers.py index 4c5788ef..95bb52c6 100644 --- a/sf_manufacturing/controllers/controllers.py +++ b/sf_manufacturing/controllers/controllers.py @@ -622,7 +622,7 @@ class Manufacturing_Connect(http.Controller): logging.info('AGVDownProduct error:%s' % e) return json.JSONEncoder().encode(res) - @http.route('/AutoDeviceApi/GetAgvStationState', type='json', auth='none', methods=['GET', 'POST'], csrf=False, + @http.route('/AutoDeviceApi/AgvStationState', type='json', auth='none', methods=['GET', 'POST'], csrf=False, cors="*") def AGVStationState(self, **kw): """ From ba986995ede3c1c963d3043a04b7d155d2a83f2e Mon Sep 17 00:00:00 2001 From: "jinling.yang" Date: Wed, 21 Aug 2024 16:53:32 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8A=A5=E5=BA=9F-?= =?UTF-8?q?=E5=B7=A5=E5=8D=95=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sf_manufacturing/models/mrp_workorder.py | 7 +++---- sf_manufacturing/views/mrp_workorder_view.xml | 2 +- sf_manufacturing/wizard/production_wizard_views.xml | 2 +- sf_manufacturing/wizard/rework_wizard_views.xml | 4 ++-- 4 files changed, 7 insertions(+), 8 deletions(-) diff --git a/sf_manufacturing/models/mrp_workorder.py b/sf_manufacturing/models/mrp_workorder.py index 98631c41..6f6a4be9 100644 --- a/sf_manufacturing/models/mrp_workorder.py +++ b/sf_manufacturing/models/mrp_workorder.py @@ -966,10 +966,9 @@ class ResMrpWorkOrder(models.Model): workorder.state = 'ready' else: workorder.state = 'waiting' - - # else: - # if workorder.state not in ['cancel', 'rework']: - # workorder.state = 'rework' + elif workorder.production_id.state == 'scrap': + if workorder.routing_type == '解除装夹' and unclamp_workorder.test_results == '报废': + workorder.state = 'waiting' if workorder.routing_type == '装夹预调' and workorder.state in ['waiting', 'ready', 'pending']: workorder_ids = workorder.production_id.workorder_ids work_bo = True diff --git a/sf_manufacturing/views/mrp_workorder_view.xml b/sf_manufacturing/views/mrp_workorder_view.xml index 107cf4b0..eab42424 100644 --- a/sf_manufacturing/views/mrp_workorder_view.xml +++ b/sf_manufacturing/views/mrp_workorder_view.xml @@ -218,7 +218,7 @@ - diff --git a/sf_manufacturing/wizard/production_wizard_views.xml b/sf_manufacturing/wizard/production_wizard_views.xml index 9c4dc190..1efef116 100644 --- a/sf_manufacturing/wizard/production_wizard_views.xml +++ b/sf_manufacturing/wizard/production_wizard_views.xml @@ -12,7 +12,7 @@ 重新生成制造订单 -
+
申请重新编程 diff --git a/sf_manufacturing/wizard/rework_wizard_views.xml b/sf_manufacturing/wizard/rework_wizard_views.xml index 08e5f8ef..8ba3f4dd 100644 --- a/sf_manufacturing/wizard/rework_wizard_views.xml +++ b/sf_manufacturing/wizard/rework_wizard_views.xml @@ -16,10 +16,10 @@ attrs='{"invisible": [("routing_type","=","装夹预调")]}' widget="many2many_tags"/>
- 注意: 该制造订单的产品已重复编程过次,且当前编程状态为 + style='color:red;'/>,且当前编程状态为