当前工单下一张工单为表面工艺时不显示回退按钮问题处理

This commit is contained in:
liaodanlong
2025-02-24 16:39:10 +08:00
parent 71e7ac9993
commit 7a3534f8e4

View File

@@ -109,7 +109,7 @@ class ResMrpWorkOrder(models.Model):
next_workorder = sorted_workorders[position + 1]
next_state = next_workorder.state
if (next_state == 'ready' or (
next_workorder.state == 'pending' and next_workorder.is_subcontract)) and cur_workorder.state == 'done':
next_workorder.state == 'waiting' and next_workorder.is_subcontract)) and cur_workorder.state == 'done':
record.back_button_display = True
else:
record.back_button_display = False