调整爆出位置

This commit is contained in:
mgw
2025-01-13 13:51:07 +08:00
parent 332a44e861
commit be9846986f
2 changed files with 13 additions and 8 deletions

View File

@@ -203,6 +203,7 @@ class MrpProduction(models.Model):
self.write({'programming_state': '编程中', 'work_state': '编程中'})
self[0].workorder_ids.filtered(
lambda a: a.name == '装夹预调' and a.state not in ['rework', 'done', 'cancel'])._compute_state()
return True
if missing_tool_1:
logging.info(f'线边、机内缺刀:{missing_tool_1}')
# 修改 修改cnc程序的刀具状态 为 ‘缺刀’