From 0951bd03e94587b341be33a29c0362c0d8a88ec7 Mon Sep 17 00:00:00 2001 From: Sergi Almacellas Abellana Date: Tue, 20 Sep 2016 09:52:25 +0200 Subject: [PATCH] Add test from parse_clause with nested generator issue5883 review26661002 --- tryton/common/domain_parser.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tryton/common/domain_parser.py b/tryton/common/domain_parser.py index 339d298a27..2d6758c2e3 100644 --- a/tryton/common/domain_parser.py +++ b/tryton/common/domain_parser.py @@ -1470,6 +1470,11 @@ def test_parse_clause(): assert rlist(dom.parse_clause([('Reference', None, ['foo', 'bar'])])) == [ ('reference', 'in', ['foo', 'bar']), ] + assert rlist(dom.parse_clause(['OR', + ('Name', None, 'John'), ('Name', None, 'Jane')])) == ['OR', + ('name', 'ilike', '%John%'), + ('name', 'ilike', '%Jane%'), + ] assert rlist(dom.parse_clause([('Many2One', None, 'John')])) == [ ('many2one', 'ilike', '%John%'), ]