From b2e3514016599881a3b05c043e7d6d0ec5570f23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Calonne?= <aurel@nexedi.com> Date: Mon, 2 Mar 2009 16:07:29 +0000 Subject: [PATCH] fix wrong sql keyword git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25791 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Document/ImmobilisableItem.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/product/ERP5/Document/ImmobilisableItem.py b/product/ERP5/Document/ImmobilisableItem.py index 42e62dcf5e..263050dcab 100644 --- a/product/ERP5/Document/ImmobilisableItem.py +++ b/product/ERP5/Document/ImmobilisableItem.py @@ -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 -- 2.30.9