diff --git a/product/ERP5/Document/Resource.py b/product/ERP5/Document/Resource.py
index 04b106152b97de1a11d289e505c1d15d235968a9..b625c3471e7a82baea8237372eb56e254086dfef 100755
--- a/product/ERP5/Document/Resource.py
+++ b/product/ERP5/Document/Resource.py
@@ -606,12 +606,12 @@ class Resource(XMLMatrix, CoreResource, Variated):
       self._baseSetQuantityStepList(value)
       value = self.getQuantityStepList()
       value.sort()
-      for pid in self.contentIds(filter={'portal_type': 'Predicate'}):
+      for pid in self.contentIds(filter={'portal_type': 'Predicate Group'}):
         self.deleteContent(pid)
       if len(value) > 0:
         value = [None] + value + [None]
         for i in range(0, len(value) - 1):
-          p = self.newContent(id = 'quantity_range_%s' % i, portal_type = 'Predicate')
+          p = self.newContent(id = 'quantity_range_%s' % i, portal_type = 'Predicate Group')
           p.setCriterionPropertyList(('quantity', ))
           p.setCriterion('quantity', min=value[i], max=value[i+1])
           p.setTitle('%s <= quantity < %s' % (repr(value[i]),repr(value[i+1])))
diff --git a/product/ERP5/Document/SupplyLine.py b/product/ERP5/Document/SupplyLine.py
index 293f693d4518a358f41807fbe62fc660add48a9e..b77ff3c14a160db23095dea6518873e357de98fb 100755
--- a/product/ERP5/Document/SupplyLine.py
+++ b/product/ERP5/Document/SupplyLine.py
@@ -274,11 +274,11 @@ Une ligne tarifaire."""
       self._baseSetQuantityStepList(value)
       value = self.getQuantityStepList()
       value.sort()
-      for pid in self.contentIds(filter={'portal_type': 'Predicate'}):
+      for pid in self.contentIds(filter={'portal_type': 'Predicate Group'}):
         self.deleteContent(pid)
       value = [None] + value + [None]
       for i in range(0, len(value) - 1):
-        p = self.newContent(id = 'quantity_range_%s' % i, portal_type = 'Predicate')
+        p = self.newContent(id = 'quantity_range_%s' % i, portal_type = 'Predicate Group')
         p.setCriterionPropertyList(('quantity', ))
         p.setCriterion('quantity', min=value[i], max=value[i+1])              
         p.setTitle('%s <= quantity < %s' % (repr(value[i]),repr(value[i+1])))