1、当检测到缺刀工单需要的功能刀具从刀具房出库到线边刀架时,更改cnc编程单的功能刀具状态为正常;

This commit is contained in:
yuxianghui
2024-07-11 16:37:20 +08:00
parent 134e23ea2f
commit 77815c45a0
4 changed files with 19 additions and 4 deletions

View File

@@ -10,8 +10,6 @@ class CNCprocessing(models.Model):
_inherit = 'sf.cnc.processing'
_description = 'CNC加工用刀检测'
tool_state = fields.Selection([('0', '正常'), ('1', '缺刀'), ('2', '无效刀')], string='刀具状态', default='0')
# ==========MES装刀指令接口==========
# def register_cnc_processing(self, knife_plan):
# config = self.env['res.config.settings'].get_values()