1、解决 功能刀具是无效刀时-制造订单提交返工【申请重新编程】要做成必选
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user