From 978e4277341b37c524345b85594767eaea4b570e Mon Sep 17 00:00:00 2001 From: mgw <1392924357@qq.com> Date: Wed, 5 Feb 2025 17:44:32 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=88=B6=E9=80=A0=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E9=9B=86=E5=90=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sf_manufacturing/models/mrp_production.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sf_manufacturing/models/mrp_production.py b/sf_manufacturing/models/mrp_production.py index 0d4ca196..19e912d1 100644 --- a/sf_manufacturing/models/mrp_production.py +++ b/sf_manufacturing/models/mrp_production.py @@ -1305,7 +1305,7 @@ class MrpProduction(models.Model): # 对制造订单所以面的cnc工单的程序用刀进行校验 try: logging.info(f'已更新制造订单:{productions_not_delivered}') - productions = productions.env['mrp.production'].search([('production_type', '=', '自动化产线加工')]) + productions = productions.filtered(lambda p: p.production_type == '自动化产线加工') productions.production_cnc_tool_checkout() except Exception as e: logging.info(f'对cnc工单的程序用刀进行校验报错:{e}')