Merge lp:~unifield-team/unifield-web/OEB-20-web into lp:unifield-web

Proposed by Matthieu Dietrich @ camptocamp
Status: Merged
Merged at revision: 4555
Proposed branch: lp:~unifield-team/unifield-web/OEB-20-web
Merge into: lp:unifield-web
Diff against target: 14 lines (+2/-2)
1 file modified
addons/openerp/widgets/form/_form.py (+2/-2)
To merge this branch: bzr merge lp:~unifield-team/unifield-web/OEB-20-web
Reviewer Review Type Date Requested Status
UniField Dev Team Pending
Review via email: mp+67556@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/widgets/form/_form.py'
2--- addons/openerp/widgets/form/_form.py 2011-06-22 08:47:44 +0000
3+++ addons/openerp/widgets/form/_form.py 2011-07-11 14:29:39 +0000
4@@ -491,8 +491,8 @@
5 self.type2 = attrs.get('type2')
6 self.operator = attrs.get('operator', '=')
7 self.search_context = attrs.get('context', {})
8- # m2o as selection
9- if not self.options and attrs.get('relation') and attrs.get('widget') == 'selection':
10+ #Below mentioned process should be followed for m2o as selection and for boolean field on search panel
11+ if (attrs.get('relation') and attrs.get('widget') == 'selection') or (not self.options and attrs.get('type','') != 'boolean'):
12 proxy = rpc.RPCProxy(attrs['relation'])
13 try:
14 domain = attrs.get('domain', [])

Subscribers

People subscribed via source and target branches

to all changes: