← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 750056] Re: Crash on groupby with Limit 'unlimited'

 

i got the same problem, easy to solve. (looked in trunk and cant
understand why this is not already fixed, take me 1 minute 25 secondes
to found)

IN web/addons/openerp/widgets/template/pager.mako

change (line 48)

<option value="-1" ${py.selector(limit==-1)}>unlimited</option>

by

<option value="0" ${py.selector(limit==0)}>unlimited</option>

IN web/addons/openerp/widgets/pager.py

change (line 32)

UNLIMITED = -1


by

UNLIMITED = 0

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

Title:
  Crash on groupby with Limit 'unlimited'

Status in OpenERP Web Client:
  Confirmed

Bug description:
  reproductible in 6.0.1 and 6.0.2

  in the web client:
  - open Sales → Address Book → Customers
  - Change the view limit to : "unlimited"
  - click on GroupBy : Salesman

  DataError: ERROR:  LIMIT must not be negative


References