Commit 61965335 authored by Sebastien Robin's avatar Sebastien Robin

use Predicate instead of Predicate Group


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4131 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0557f46c
......@@ -186,7 +186,7 @@ class SupplyLine(DeliveryLine, Path):
value = self.getQuantityStepList()
value.sort()
# XXX Hardcoded portal type name
for pid in self.contentIds(filter={'portal_type': 'Predicate Group'}):
for pid in self.contentIds(filter={'portal_type': 'Predicate'}):
self.deleteContent(pid)
if len(value) > 0:
#value = value
......@@ -199,7 +199,7 @@ class SupplyLine(DeliveryLine, Path):
max = value[i+1]
# XXX Hardcoded portal type name
p = self.newContent(id='quantity_range_%s' % str(i),
portal_type = 'Predicate Group')
portal_type = 'Predicate')
p.setCriterionPropertyList(('quantity', ))
p.setCriterion('quantity', min=min, max=max)
if script is not None:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment