diff --git a/bin/osv/orm.py b/bin/osv/orm.py index 5fff876d0b5..7fd90adc9b8 100644 --- a/bin/osv/orm.py +++ b/bin/osv/orm.py @@ -1956,7 +1956,7 @@ class orm(object): joins=[] while i','<','>','>=','<='), 'Error ! Bad clause operand "%s".' % (args[i][1],) + assert args[i][1] in ('like','!=','ilike','=like','not in','inselect','child_of','in','=','<>','<','>','>=','<='), 'Error ! Bad clause operand "%s".' % (args[i][1],) if args[i][1] == 'inselect': raise except_orm('ValidateError', 'The clause \'inselect\' can not be used outside the orm!')