From 6fc94042ee57138a9e3a99eb457d078f4cab3a4d Mon Sep 17 00:00:00 2001 From: "jinling.yang" Date: Tue, 4 Jun 2024 10:42:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AD=E6=8E=A7=E8=B0=83=E5=8F=96cnc?= =?UTF-8?q?=E5=B7=A5=E5=8D=95=E6=97=B6=EF=BC=8C=E5=B7=A5=E5=8D=95=E4=B8=8D?= =?UTF-8?q?=E5=AE=8C=E6=88=90=EF=BC=8C=E5=8A=A0=E5=B7=A5=E5=AE=8C=E6=88=90?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E4=B8=BA=E5=BD=93=E5=89=8D=E6=97=B6=E9=97=B4?= 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 6ef8a38e..024c9f79 100644 --- a/sf_manufacturing/controllers/controllers.py +++ b/sf_manufacturing/controllers/controllers.py @@ -215,7 +215,7 @@ class Manufacturing_Connect(http.Controller): if workorder.state != 'progress': res = {'Succeed': False, 'ErrorCode': 202, 'Error': '该工单未开始'} return json.JSONEncoder().encode(res) - workorder.button_finish() + workorder.write({'date_finished': datetime.now()}) # workorder.process_state = '待解除装夹' # workorder.sudo().production_id.process_state = '待解除装夹'