Commit 2d7d5ee4 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Define int_index to each newly created quantity step so that we can sort a...

Define int_index to each newly created quantity step so that we can sort a range of quantity steps in a good order.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34137 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fee71778
......@@ -233,7 +233,7 @@ class SupplyLine(Path, XMLMatrix):
max_quantity = quantity_step_list[i+1]
# XXX Hardcoded portal type name
p = self.newContent(id='%s_%s' % (predicate_id_start_with, str(i)),
portal_type = 'Predicate')
portal_type='Predicate', int_index=i+1)
p.setCriterionPropertyList(('quantity', ))
p.setCriterion('quantity', min=min_quantity, max=max_quantity)
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