diff --git a/product/ERP5/Document/DeliveryBuilder.py b/product/ERP5/Document/DeliveryBuilder.py index 6d4dacc992902396b75bfa26729bc607d72cc120..c74be1f2a197672c0cef8502dbb643bacb7c047a 100644 --- a/product/ERP5/Document/DeliveryBuilder.py +++ b/product/ERP5/Document/DeliveryBuilder.py @@ -130,6 +130,8 @@ class DeliveryBuilder(OrderBuilder): # XXX Use buildSQLQuery will be better movement_list = filter(lambda x: x.getDeliveryRelatedValueList()==[], movement_list) + movement_list = [x for x in movement_list if \ + x.getDeliveryRelatedValueList()==[]] # XXX Add predicate test # XXX FIXME Check that there is no double in the list # Because we can't trust simulation_select_method