Commit 923b7668 authored by Sebastien Robin's avatar Sebastien Robin

fixed the sort_on parameter when looking for previous counter dates

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14068 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cb9fba71
......@@ -80,7 +80,7 @@ context.setStartDate(DateTime(DateTime().Date()))\n
# Set a reference\n
counter_date_list = [x.getObject() for x in context.portal_catalog(\n
portal_type=\'Counter Date\',site_id=site.getSiteId(),\n
so_order=[(\'start_date\',\'descending\')],limit=1,\n
sort_on=[(\'start_date\',\'descending\')],limit=1,\n
simulation_state=(\'open\',\'closed\'))]\n
previous_reference = None\n
if len(counter_date_list)>0:\n
......
193
\ No newline at end of file
195
\ No newline at end of file
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