~fabien-morin/unifield-web/fm-us-2000

« back to all changes in this revision

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

  • Committer: jf
  • Date: 2016-08-23 12:32:56 UTC
  • mfrom: (4795.1.14 unifield-web)
  • Revision ID: jfb@tempo-consulting.fr-20160823123256-4e9kpyc8iay273iq
US-1246 [IMP] Web Performance

lp:~fabien-morin/unifield-web/perf_improvement_web @4809

Show diffs side-by-side

added added

removed removed

Lines of Context:
517
517
        self.operator = attrs.get('operator', '=')
518
518
        self.search_context = attrs.get('context', {})
519
519
        #Below mentioned process should be followed for m2o as selection and for boolean field on search panel
520
 
        if not self.options and attrs.get('relation') and attrs.get('widget') == 'selection':
 
520
        if not self.options and attrs.get('relation') and attrs.get('widget') == 'selection' and not attrs.get('get_selection'):
521
521
            proxy = rpc.RPCProxy(attrs['relation'])
522
522
            try:
523
523
                domain = attrs.get('domain', [])