Merge lp:~hbrunn/ocb-server/7.0-lp1124130 into lp:ocb-server

Proposed by Holger Brunn (Therp)
Status: Merged
Approved by: Alexandre Fayolle - camptocamp
Approved revision: 4835
Merged at revision: 4861
Proposed branch: lp:~hbrunn/ocb-server/7.0-lp1124130
Merge into: lp:ocb-server
Diff against target: 12 lines (+1/-1)
1 file modified
openerp/osv/fields.py (+1/-1)
To merge this branch: bzr merge lp:~hbrunn/ocb-server/7.0-lp1124130
Reviewer Review Type Date Requested Status
Alexandre Fayolle - camptocamp Approve
Stefan Rijnhart (Opener) Approve
Review via email: mp+148200@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) wrote :

Read the line in a larger context in fields.py and it looks good. I'd say something about the line length but it was already too long before you inserted this bit. You could still consider changing it as you wrote the original patch for the official branches. These have not yet been merged so you could change it there too.

Note that I am against unnecessary refactoring in this project to avoid conflicts with upstream, but in this case it would not make a difference. Not blocking AFAIK.

review: Approve
Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) wrote :

Oh, like I mentioned in another MP, please link this project+series to the bug report.

Revision history for this message
Alexandre Fayolle - camptocamp (alexandre-fayolle-c2c) wrote :

I merged this one. I hope I did it correctly... Please scold me if I goofed. :-)

review: Approve
Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) wrote :

No, that's fine. Thanks!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'openerp/osv/fields.py'
2--- openerp/osv/fields.py 2013-01-11 17:57:17 +0000
3+++ openerp/osv/fields.py 2013-02-13 14:34:24 +0000
4@@ -462,7 +462,7 @@
5 # we use uid=1 because the visibility of a many2one field value (just id and name)
6 # must be the access right of the parent form and not the linked object itself.
7 records = dict(obj.name_get(cr, SUPERUSER_ID,
8- list(set([x for x in res.values() if isinstance(x, (int,long))])),
9+ list(set([x for x in res.values() if isinstance(x, (int,long)) and not isinstance(x, bool)])),
10 context=context))
11 for id in res:
12 if res[id] in records: