人工线下加工工单也需要走cloud编程流程的优化需求

This commit is contained in:
mgw
2025-02-05 17:41:52 +08:00
parent 8bfe5eca03
commit 0a8cc050b8
3 changed files with 8 additions and 5 deletions

View File

@@ -1302,6 +1302,7 @@ class MrpProduction(models.Model):
# 对制造订单所以面的cnc工单的程序用刀进行校验
try:
logging.info(f'已更新制造订单:{productions_not_delivered}')
productions = productions.env['mrp.production'].search([('production_type', '=', '自动化产线加工')])
productions.production_cnc_tool_checkout()
except Exception as e:
logging.info(f'对cnc工单的程序用刀进行校验报错{e}')