1、解决 功能刀具是无效刀时-制造订单提交返工【申请重新编程】要做成必选

This commit is contained in:
yuxianghui
2024-07-26 11:49:33 +08:00
parent de8bebc1f9
commit 98d2aa756a
2 changed files with 8 additions and 4 deletions

View File

@@ -31,6 +31,8 @@ class ReworkWizard(models.TransientModel):
('已下发', '已下发')],
string='编程状态')
tool_state = fields.Selection(string='功能刀具状态', related='production_id.tool_state')
def confirm(self):
if self.routing_type in ['装夹预调', 'CNC加工']:
self.workorder_id.is_rework = True