Merge lp:~openerp-dev/openobject-server/6.0-opw-19972-rha into lp:openobject-server/6.0
Proposed by
Rifakat Husen (OpenERP)
Status: | Merged |
---|---|
Approved by: | Naresh(OpenERP) |
Approved revision: | no longer in the source branch. |
Merged at revision: | 3590 |
Proposed branch: | lp:~openerp-dev/openobject-server/6.0-opw-19972-rha |
Merge into: | lp:openobject-server/6.0 |
Diff against target: |
35 lines (+5/-6) 1 file modified
bin/osv/orm.py (+5/-6) |
To merge this branch: | bzr merge lp:~openerp-dev/openobject-server/6.0-opw-19972-rha |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Xavier ALT (community) | Approve | ||
Naresh(OpenERP) (community) | Approve | ||
nel | Pending | ||
Review via email: mp+82502@code.launchpad.net |
Description of the change
Hello,
Corrected behavior of search method of osv memory object which was giving wrong result with limit and offset.
Currently it was searching for records till the limit instead of giving number of record of that limit and offset did not take into account also.
Regards,
Rifakat
To post a comment you must log in.
Hello,
First "if" is equivalent to the "elif" in default case (offset = 0), so a unique "if" is sufficient, like:
if limit and (counter > int(limit) +int(offset) )
Cheers,
Xavier