From b925659d504ae7ca11f84de07a97f56c730e047a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 10 Sep 2008 14:38:56 +0200 Subject: [PATCH] Make empty list in clause is converted into true --- trytond/osv/orm.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/trytond/osv/orm.py b/trytond/osv/orm.py index b4c11d1645..6b7a094293 100644 --- a/trytond/osv/orm.py +++ b/trytond/osv/orm.py @@ -2231,6 +2231,8 @@ class ORM(object): for args2 in list_args: qu1b, qu2b = self.__where_calc_oper(cursor, user, args2, tables, tables_args, context=context) + if not qu1b: + qu1b = 'true' if qu1 and qu1b: qu1 += ' ' + operator + ' ' + qu1b elif qu1b: