Fix bug with orders in waiting state.
This commit is contained in:
parent
51512af3d5
commit
105eb6ec42
2
load.py
2
load.py
|
@ -454,7 +454,7 @@ class LoadUnitLoad(Wizard):
|
|||
if Transaction().context.get('active_model') != LoadOrder.__name__:
|
||||
return 'order'
|
||||
order = Loadorder(Transaction().context['active_id'])
|
||||
if order.state == 'waiting' and len(order.unit_loads) > 1:
|
||||
if order.state == 'waiting' and len(order.unit_loads) > 0:
|
||||
Loadorder.run([order])
|
||||
return 'end'
|
||||
return 'data'
|
||||
|
|
Loading…
Reference in New Issue