1、优化工单状态;2、添加功能刀具位置字段自动计算方法触发条件
This commit is contained in:
@@ -106,9 +106,9 @@ class CNCprocessing(models.Model):
|
||||
'handle_result': '待处理'
|
||||
})
|
||||
# 修改当前面装夹预调工单的 is_rework 为 True
|
||||
work_ids = production_id.workorder_ids.filtered(
|
||||
lambda a: a.routing_type == '装夹预调' and a.processing_panel == key and not a.is_rework)
|
||||
work_ids.write({'is_rework': True})
|
||||
# work_ids = production_id.workorder_ids.filtered(
|
||||
# lambda a: a.routing_type == '装夹预调' and a.processing_panel == key and not a.is_rework)
|
||||
# work_ids.write({'is_rework': True})
|
||||
# 对缺刀信息进行处理
|
||||
for key in data2:
|
||||
if data2.get(key):
|
||||
|
||||
Reference in New Issue
Block a user