[Erp5-report] r34137 yo - /erp5/trunk/products/ERP5/Document/SupplyLine.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Mar 26 12:00:27 CET 2010
Author: yo
Date: Fri Mar 26 12:00:26 2010
New Revision: 34137
URL: http://svn.erp5.org?rev=34137&view=rev
Log:
Define int_index to each newly created quantity step so that we can sort a range of quantity steps in a good order.
Modified:
erp5/trunk/products/ERP5/Document/SupplyLine.py
Modified: erp5/trunk/products/ERP5/Document/SupplyLine.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/SupplyLine.py?rev=34137&r1=34136&r2=34137&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/SupplyLine.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/SupplyLine.py [utf8] Fri Mar 26 12:00:26 2010
@@ -233,7 +233,7 @@
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:
More information about the Erp5-report
mailing list