Merge lp:~unifield-team/unifield-web/uf-844 into lp:unifield-web

Proposed by jftempo
Status: Merged
Merged at revision: 4634
Proposed branch: lp:~unifield-team/unifield-web/uf-844
Merge into: lp:unifield-web
Diff against target: 22 lines (+6/-5)
1 file modified
addons/openerp/controllers/listgrid.py (+6/-5)
To merge this branch: bzr merge lp:~unifield-team/unifield-web/uf-844
Reviewer Review Type Date Requested Status
UniField Dev Team Pending
Review via email: mp+99787@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
=== modified file 'addons/openerp/controllers/listgrid.py'
--- addons/openerp/controllers/listgrid.py 2011-12-30 08:51:35 +0000
+++ addons/openerp/controllers/listgrid.py 2012-03-28 16:44:45 +0000
@@ -74,12 +74,13 @@
74 data = {fld : [(id and 1, id, data.copy())]}74 data = {fld : [(id and 1, id, data.copy())]}
75 proxy.write([params.parent.id], data, ctx)75 proxy.write([params.parent.id], data, ctx)
7676
77 all_ids = proxy.read([params.parent.id], [fld])[0][fld]77 if not id:
78 new_ids = [i for i in all_ids if i not in ids]78 all_ids = proxy.read([params.parent.id], [fld])[0][fld]
79 new_ids = [i for i in all_ids if i not in ids]
7980
80 ids = all_ids81 ids = all_ids
81 if new_ids:82 if new_ids:
82 id = new_ids[0]83 id = new_ids[0]
8384
84 else:85 else:
85 data = frm.copy()86 data = frm.copy()

Subscribers

People subscribed via source and target branches

to all changes: