[FIX] searches with filters using "empty" domain/context values (but not attributes)
authorXavier Morel <xmo@openerp.com>
Thu, 29 Nov 2012 11:24:13 +0000 (12:24 +0100)
committerXavier Morel <xmo@openerp.com>
Thu, 29 Nov 2012 11:24:13 +0000 (12:24 +0100)
commitfe3d493cc84583fbdd8da4917f9199fdef751dc0
treec28f1a156fbbae0a623b1c2e833bd7fcdeea0fc6
parenta2b23a1ca71a25f912c5f92e8a1dbfdde69bc568
[FIX] searches with filters using "empty" domain/context values (but not attributes)

e.g. @domain="[]" would be seen as non-empty by the search view, and
if multiple domains the search view would generate a nonliteral
``['|', '[]', '[]]`` which would just yield ``['|']`` after evaluation
and concatenation, which is an invalid domain and would blow up the
server.

Specifically filter out the values ``[]`` and ``{}`` from filters

bzr revid: xmo@openerp.com-20121129112413-yrgncnesqs093jwf
addons/web/static/src/js/search.js
addons/web/static/test/search.js