← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 615352] Re: listgrid crash if no limit or offset

 

** Tags added: profserv

-- 
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/615352

Title:
  listgrid crash if no limit or offset

Status in OpenERP Web Client:
  Fix Released

Bug description:
  The fix for the bug 604618 is creating a new bug if self.limit or self.offset is None.
  This is for example the case when clicking on Customize -> Manage Views / Workflows

    File "/usr/lib/pymodules/python2.6/cherrypy/_cprequest.py", line 606, in respond
      cherrypy.response.body = self.handler()
    File "/usr/lib/pymodules/python2.6/cherrypy/_cpdispatch.py", line 25, in __call__
      return self.callable(*self.args, **self.kwargs)
    File "/home/jbaudoux/OpenERP/projects/PlanetMail/src/web-5.0/openerp/controllers/base.py", line 170, in wrapper
      return fn(*args, **kw)
    File "/home/jbaudoux/OpenERP/projects/PlanetMail/src/web-5.0/openerp/tools/expose.py", line 204, in func_wrapper
      res = func(*args, **kw)
    File "/home/jbaudoux/OpenERP/projects/PlanetMail/src/web-5.0/openerp/controllers/viewlist.py", line 53, in index
      screen = tw.screen.Screen(params, selectable=1)
    File "/home/jbaudoux/OpenERP/projects/PlanetMail/src/web-5.0/openerp/widgets/base/meta.py", line 40, in wrapper
      res = func(self, *args, **kw)
    File "/home/jbaudoux/OpenERP/projects/PlanetMail/src/web-5.0/openerp/widgets/screen.py", line 127, in __init__
      self.add_view_id(self.view_id, self.view_type)
    File "/home/jbaudoux/OpenERP/projects/PlanetMail/src/web-5.0/openerp/widgets/screen.py", line 145, in add_view_id
      self.add_view(view, view_type)
    File "/home/jbaudoux/OpenERP/projects/PlanetMail/src/web-5.0/openerp/widgets/screen.py", line 177, in add_view
      offset=self.offset, limit=self.limit, count=self.count, nolinks=self.link)
    File "/home/jbaudoux/OpenERP/projects/PlanetMail/src/web-5.0/openerp/widgets/base/meta.py", line 40, in wrapper
      res = func(self, *args, **kw)
    File "/home/jbaudoux/OpenERP/projects/PlanetMail/src/web-5.0/openerp/widgets/listgrid.py", line 173, in __init__
      ids = ids[self.offset:self.offset+self.limit]
  TypeError: unsupported operand type(s) for +: 'NoneType' and 'NoneType'