Merge lp:~unifield-team/unifield-web/us-483 into lp:unifield-web

Proposed by jftempo
Status: Merged
Merged at revision: 4766
Proposed branch: lp:~unifield-team/unifield-web/us-483
Merge into: lp:unifield-web
Diff against target: 12 lines (+1/-1)
1 file modified
addons/openerp/controllers/form.py (+1/-1)
To merge this branch: bzr merge lp:~unifield-team/unifield-web/us-483
Reviewer Review Type Date Requested Status
UniField Reviewer Team Pending
Review via email: mp+267149@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'addons/openerp/controllers/form.py'
2--- addons/openerp/controllers/form.py 2014-08-27 13:43:50 +0000
3+++ addons/openerp/controllers/form.py 2015-08-06 07:06:51 +0000
4@@ -654,7 +654,7 @@
5 current.ids.remove(current.id)
6 params.count -= 1
7 if not len(current.ids) and params.count > 0:
8- params.offset = params.offset - params.limit
9+ params.offset = max(params.offset - params.limit, 0)
10 current.ids = proxy.search([], params.offset, params.limit,0, ctx)
11 idx = -1
12 if idx == len(current.ids):

Subscribers

People subscribed via source and target branches

to all changes: