diff --git a/product/ERP5/Document/Delivery.py b/product/ERP5/Document/Delivery.py index 84764affd90f95ffea98af6cbc9a576148cc9de8..aab2485a68f592c9b108532c118b1ece54b598db 100644 --- a/product/ERP5/Document/Delivery.py +++ b/product/ERP5/Document/Delivery.py @@ -960,8 +960,4 @@ class Delivery(XMLObject, ImmobilisationDelivery, CompositionMixin): movement_uid_list = [x.getUid() for x in self.getMovementList()] sim_movement_list = search_method(portal_type='Simulation Movement', delivery_uid=movement_uid_list, **kw) - if len(sim_movement_list) == 0: - # 'order' category is deprecated. it is kept for compatibility. - sim_movement_list = search_method(portal_type='Simulation Movement', - order_uid=movement_uid_list, **kw) return sim_movement_list