Fix bug with orders in waiting state.

This commit is contained in:
Sergio Morillo 2016-02-02 09:27:53 +01:00
parent 51512af3d5
commit 105eb6ec42
1 changed files with 1 additions and 1 deletions

View File

@ -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'