diff --git a/product/ERP5Type/Base.py b/product/ERP5Type/Base.py
index 1854a8c3e5746a49e8e376502d45dde6e4dc1c8b..091e34f87d12d328055a2262a61a4353d783db68 100755
--- a/product/ERP5Type/Base.py
+++ b/product/ERP5Type/Base.py
@@ -100,6 +100,7 @@ class Base( CopyContainer, PortalContent, Base18, ActiveObject, ERP5PropertyMana
   isCategory = 0      #
   isBaseCategory = 0  #
   isMovement = 0      #
+  isDelivery = 0      #
   isIndexable = 1   # If set to 0, reindexing will not happen (useful for optimization)
 
   # Declarative security
@@ -1263,5 +1264,8 @@ class TempBase(Base):
   def activate(self):
     return self
 
+  def setUid(self, value):
+    self.uid = value # Required for Listbox so that no casting happens when we use TempBase to create new objects    
+
 InitializeClass(Base)