From 2d81f2cfdda8c62aba9dad8b596aff1734dfd3d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9ry=20Debongnie?= Date: Thu, 18 Sep 2014 11:50:25 +0200 Subject: [PATCH] [FIX] update autocomplete test Autocompletion of many2one fields only accepts domains in the form of arrays, not as strings. --- addons/web/static/test/search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/static/test/search.js b/addons/web/static/test/search.js index 828347b68a5..911c41eefd9 100644 --- a/addons/web/static/test/search.js +++ b/addons/web/static/test/search.js @@ -629,7 +629,7 @@ openerp.testing.section('search.completions', { dataset: {get_context: function () { return {flag: 1}; }} }; var f = new instance.web.search.ManyToOneField( - {attrs: {string: 'Dummy', domain: '[["foo", "=", "bar"]]'}}, + {attrs: {string: 'Dummy', domain: [["foo", "=", "bar"]]}}, {relation: 'dummy.model'}, view); return f.expand("bob"); });