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): ...@@ -186,7 +186,7 @@ class SupplyLine(DeliveryLine, Path):
value = self.getQuantityStepList() value = self.getQuantityStepList()
value.sort() value.sort()
# XXX Hardcoded portal type name # 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) self.deleteContent(pid)
if len(value) > 0: if len(value) > 0:
#value = value #value = value
...@@ -199,7 +199,7 @@ class SupplyLine(DeliveryLine, Path): ...@@ -199,7 +199,7 @@ class SupplyLine(DeliveryLine, Path):
max = value[i+1] max = value[i+1]
# XXX Hardcoded portal type name # XXX Hardcoded portal type name
p = self.newContent(id='quantity_range_%s' % str(i), p = self.newContent(id='quantity_range_%s' % str(i),
portal_type = 'Predicate Group') portal_type = 'Predicate')
p.setCriterionPropertyList(('quantity', )) p.setCriterionPropertyList(('quantity', ))
p.setCriterion('quantity', min=min, max=max) p.setCriterion('quantity', min=min, max=max)
if script is not None: 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