~viktor-nagy/openobject-client-web/treegrid-buttons

« back to all changes in this revision

Viewing changes to addons/openerp/widgets/form/_form.py

  • Committer: Viktor Nagy
  • Date: 2011-07-12 05:03:07 UTC
  • mfrom: (4529.1.136 6.0)
  • Revision ID: viktor.nagy@toolpart.hu-20110712050307-evyo7xzx8o7x10kk
mergedĀ fromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
491
491
        self.type2 = attrs.get('type2')
492
492
        self.operator = attrs.get('operator', '=')
493
493
        self.search_context = attrs.get('context', {})
494
 
        # m2o as selection
495
 
        if not self.options and attrs.get('relation') and attrs.get('widget') == 'selection':
 
494
        #Below mentioned process should be followed for m2o as selection and for boolean field on search panel
 
495
        if (attrs.get('relation') and attrs.get('widget') == 'selection') or (not self.options and attrs.get('type','') != 'boolean'):
496
496
            proxy = rpc.RPCProxy(attrs['relation'])
497
497
            try:
498
498
                domain = attrs.get('domain', [])