当前工单下一张工单为表面工艺时不显示回退按钮问题处理
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user