From d22f37e654b8eebdf039b020f0c83ffd5562e3cf Mon Sep 17 00:00:00 2001 From: Fabien Pinckaers Date: Tue, 27 May 2008 07:17:11 +0000 Subject: [PATCH] Bugfix bzr revid: fp@tinyerp.com-25c708b3e55f1bbe1c7be4a34568c503457d5fc1 --- bin/osv/orm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/osv/orm.py b/bin/osv/orm.py index a179d8542a2..5fff876d0b5 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!')