优化工单状态

This commit is contained in:
yuxianghui
2024-07-31 14:59:57 +08:00
parent ffb775abb7
commit 5f7f905540
2 changed files with 3 additions and 6 deletions

View File

@@ -687,9 +687,6 @@ class MrpProduction(models.Model):
for work_id in work_ids:
if panel_sequence_list.get(work_id.name):
work_id.sequence = panel_sequence_list[work_id.name]
if rec.tool_state in ['1', '2']:
rec.workorder_ids.filtered(
lambda a: a.routing_type == '装夹预调' and a.state in 'ready').compute_state()
# 创建工单并进行排序
def _create_workorder(self, item):