Public bug reported:

How to reproduce the bug:
1st, I enter the Leads section, and click "Clear" to get all leads appear.
2nd, I click the "CREATION DATE" column header twice to get the leads be sorted 
descending.
3rd, I click one lead to see its detail. Then return to the Search View".
4th, after I return to the "Search View", the sorting is damaged.
Then I click the "CREATION DATE" column header again to sort the leads, 
but the Application Error warning appears as followed:

Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/openerp-server_9040/netsvc.py", 
line 489, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, 
params)
  File 
"/usr/local/lib/python2.6/dist-packages/openerp-server_9040/service/web_services.py",
 line 599, in dispatch
    res = fn(db, uid, *params)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server_9040/osv/osv.py", 
line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server_9040/osv/osv.py", 
line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server_9040/osv/osv.py", 
line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server_9040/osv/orm.py", 
line 1743, in search
    return self._search(cr, user, args, offset=offset, limit=limit, 
order=order, context=context, count=count)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server_9040/osv/orm.py", 
line 4010, in _search
    query = self._where_calc(cr, user, args, context=context)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server_9040/osv/orm.py", 
line 3865, in _where_calc
    where_clause, where_params = e.to_sql()
  File 
"/usr/local/lib/python2.6/dist-packages/openerp-server_9040/osv/expression.py", 
line 498, in to_sql
    q1 = stack.pop()
IndexError: pop from empty list

** Affects: openobject-addons
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/832638

Title:
  sorting field crashes

Status in OpenERP Modules (addons):
  New

Bug description:
  How to reproduce the bug:
  1st, I enter the Leads section, and click "Clear" to get all leads appear.
  2nd, I click the "CREATION DATE" column header twice to get the leads be 
sorted descending.
  3rd, I click one lead to see its detail. Then return to the Search View".
  4th, after I return to the "Search View", the sorting is damaged.
  Then I click the "CREATION DATE" column header again to sort the leads, 
  but the Application Error warning appears as followed:

  Traceback (most recent call last):
    File 
"/usr/local/lib/python2.6/dist-packages/openerp-server_9040/netsvc.py", line 
489, in dispatch
      result = ExportService.getService(service_name).dispatch(method, auth, 
params)
    File 
"/usr/local/lib/python2.6/dist-packages/openerp-server_9040/service/web_services.py",
 line 599, in dispatch
      res = fn(db, uid, *params)
    File 
"/usr/local/lib/python2.6/dist-packages/openerp-server_9040/osv/osv.py", line 
122, in wrapper
      return f(self, dbname, *args, **kwargs)
    File 
"/usr/local/lib/python2.6/dist-packages/openerp-server_9040/osv/osv.py", line 
176, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File 
"/usr/local/lib/python2.6/dist-packages/openerp-server_9040/osv/osv.py", line 
167, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File 
"/usr/local/lib/python2.6/dist-packages/openerp-server_9040/osv/orm.py", line 
1743, in search
      return self._search(cr, user, args, offset=offset, limit=limit, 
order=order, context=context, count=count)
    File 
"/usr/local/lib/python2.6/dist-packages/openerp-server_9040/osv/orm.py", line 
4010, in _search
      query = self._where_calc(cr, user, args, context=context)
    File 
"/usr/local/lib/python2.6/dist-packages/openerp-server_9040/osv/orm.py", line 
3865, in _where_calc
      where_clause, where_params = e.to_sql()
    File 
"/usr/local/lib/python2.6/dist-packages/openerp-server_9040/osv/expression.py", 
line 498, in to_sql
      q1 = stack.pop()
  IndexError: pop from empty list

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/832638/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~c2c-oerpscenario
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~c2c-oerpscenario
More help   : https://help.launchpad.net/ListHelp

Reply via email to