Accept Merge Request #1189: (feature/优化工单_4 -> develop)
Merge Request: 处理 无效刀触发返工-更新程序后-第一张工单的状态不对 bug Created By: @禹翔辉 Reviewed By: @马广威 Approved By: @马广威 Accepted By: @禹翔辉 URL: https://jikimo-hn.coding.net/p/jikimo_sfs/d/jikimo_sf/git/merge/1189
This commit is contained in:
@@ -105,12 +105,10 @@ class CNCprocessing(models.Model):
|
||||
'test_results': '返工',
|
||||
'handle_result': '待处理'
|
||||
})
|
||||
# if not production_id.is_rework:
|
||||
# production_id.write({
|
||||
# 'is_rework': True
|
||||
# })
|
||||
# production_id.workorder_ids.filtered(
|
||||
# lambda a: a.processing_panel == key and not a.is_rework).write({'is_rework': True})
|
||||
# 修改当前面装夹预调工单的 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