From 676f8eb7eb8a99ea2d540977c949593171496060 Mon Sep 17 00:00:00 2001 From: yuxianghui <3437689193@qq.com> Date: Mon, 30 Dec 2024 09:52:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=82=B9=E5=87=BB=E5=B7=A5?= =?UTF-8?q?=E5=8D=95=E7=9A=84=E8=A7=A3=E7=BB=91=E6=89=98=E7=9B=98=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E6=97=B6=EF=BC=8C=E4=BF=AE=E6=94=B9=E5=AF=B9=E5=BA=94?= =?UTF-8?q?=E6=89=98=E7=9B=98=E7=8A=B6=E6=80=81=E4=B8=BA=E7=A9=BA=E9=97=B2?= 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 410f8d1b..ef2c654b 100644 --- a/sf_manufacturing/models/mrp_workorder.py +++ b/sf_manufacturing/models/mrp_workorder.py @@ -1464,6 +1464,9 @@ class ResMrpWorkOrder(models.Model): 'tray_type_id': False, 'tray_model_id': False, 'is_trayed': False}) + for item in self: + self.env['stock.lot'].sudo().search([('rfid', '=', item.rfid_code)]).write({ + 'tool_material_status': '可用'}) # 将FTP的检测报告文件下载到临时目录 def download_reportfile_tmp(self, workorder, reportpath):