[FIX] update autocomplete test

Autocompletion of many2one fields only accepts domains in the form of
arrays, not as strings.
This commit is contained in:
Géry Debongnie 2014-09-18 11:50:25 +02:00
parent 53aa92d3c9
commit 2d81f2cfdd
1 changed files with 1 additions and 1 deletions

View 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");
});