Suport for `!=` operation for domain expression.
authorAmit Mendapara <ame@tinyerp.com>
Wed, 6 Aug 2008 06:53:53 +0000 (12:23 +0530)
committerAmit Mendapara <ame@tinyerp.com>
Wed, 6 Aug 2008 06:53:53 +0000 (12:23 +0530)
bzr revid: ame@tinyerp.com-20080806065353-48ed3ecbuim9lxgb

bin/osv/expression.py

index 19f6b4b..176a244 100644 (file)
@@ -52,7 +52,7 @@ class expression(object):
     def _is_leaf(self, element):
         return isinstance(element, tuple) \
            and len(element) == 3 \
-           and element[1] in ('=', '<>', '<=', '<', '>', '>=', '=like', 'like', 'not like', 'ilike', 'not ilike', 'in', 'not in', 'child_of') 
+           and element[1] in ('=', '!=', '<>', '<=', '<', '>', '>=', '=like', 'like', 'not like', 'ilike', 'not ilike', 'in', 'not in', 'child_of') 
 
     def _is_expression(self, element):
         return isinstance(element, tuple) \