diff --git a/product/ERP5/Document/SimulatedDeliveryBuilder.py b/product/ERP5/Document/SimulatedDeliveryBuilder.py
index 2494ede6fd9bf953cf4e184d90a26cac6121c0d2..320f3efeb6524a5b170d6ccc6a5eaae3b80b2acc 100644
--- a/product/ERP5/Document/SimulatedDeliveryBuilder.py
+++ b/product/ERP5/Document/SimulatedDeliveryBuilder.py
@@ -349,7 +349,6 @@ class SimulatedDeliveryBuilder(BuilderMixin):
       old_delivery = None
     if old_delivery is None:
       # from scratch
-      new_delivery_id = str(delivery_module.generateNewId())
       delivery = super(SimulatedDeliveryBuilder, self)._createDelivery(
         delivery_module, movement_list, activate_kw)
       # Interactions will usually trigger reindexing of related SM when