Commit b2e35140 authored by Aurel's avatar Aurel

fix wrong sql keyword


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25791 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent df298051
......@@ -121,8 +121,8 @@ class ImmobilisableItem(XMLObject, Amount):
portal_type = self.getPortalDeliveryMovementTypeList() + \
('Immobilisation Line', 'Immobilisation Cell')
sql_dict['portal_type'] = portal_type
sql_dict['sort-on'] = 'movement.stop_date'
sql_dict['sort-order'] = 'ascending'
sql_dict['sort_on'] = 'movement.stop_date'
sql_dict['sort_order'] = 'ascending'
# Handle dates
date_key = 'movement.stop_date'
......@@ -1077,8 +1077,8 @@ class ImmobilisableItem(XMLObject, Amount):
# Get tracking list
sql_kw = self._getCleanSqlDict(**kw)
sql_kw['item'] = self.getRelativeUrl()
sql_kw['sort-on'] = 'item.date'
sql_kw['sort-order'] = 'ascending'
sql_kw['sort_on'] = 'item.date'
sql_kw['sort_order'] = 'ascending'
change_list = self.portal_simulation.getCurrentTrackingHistoryList(**sql_kw)
to_date = kw.get('to_date')
# Collect data
......
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