~openerp-dev/openobject-server/6.1-m2o-ops

« back to all changes in this revision

Viewing changes to openerp/osv/expression.py

  • Committer: Olivier Dony
  • Date: 2014-05-22 10:28:13 UTC
  • Revision ID: odo@openerp.com-20140522102813-66ajnosiswg367i6
[FIX] osv.expression: avoid overriding exotic operators for m2o domains

Show diffs side-by-side

added added

removed removed

Lines of Context:
581
581
                            context = {}
582
582
                        c = context.copy()
583
583
                        c['active_test'] = False
584
 
                        #Special treatment to ill-formed domains
585
 
                        operator = ( operator in ['<','>','<=','>='] ) and 'in' or operator
586
 
 
587
584
                        dict_op = {'not in':'!=','in':'=','=':'in','!=':'not in'}
588
585
                        if isinstance(right, tuple):
589
586
                            right = list(right)