[FIX] update autocomplete test
authorGéry Debongnie <ged@odoo.com>
Thu, 18 Sep 2014 09:50:25 +0000 (11:50 +0200)
committerGéry Debongnie <ged@odoo.com>
Thu, 18 Sep 2014 09:52:38 +0000 (11:52 +0200)
Autocompletion of many2one fields only accepts domains in the form of
arrays, not as strings.

addons/web/static/test/search.js

index 828347b..911c41e 100644 (file)
@@ -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");
     });