调整制造订单集合

This commit is contained in:
mgw
2025-02-05 17:44:32 +08:00
parent dd35a6ae5f
commit 978e427734

View File

@@ -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}')