[FIX] update autocomplete test
Autocompletion of many2one fields only accepts domains in the form of arrays, not as strings.
This commit is contained in:
parent
53aa92d3c9
commit
2d81f2cfdd
|
@ -629,7 +629,7 @@ openerp.testing.section('search.completions', {
|
||||||
dataset: {get_context: function () { return {flag: 1}; }}
|
dataset: {get_context: function () { return {flag: 1}; }}
|
||||||
};
|
};
|
||||||
var f = new instance.web.search.ManyToOneField(
|
var f = new instance.web.search.ManyToOneField(
|
||||||
{attrs: {string: 'Dummy', domain: '[["foo", "=", "bar"]]'}},
|
{attrs: {string: 'Dummy', domain: [["foo", "=", "bar"]]}},
|
||||||
{relation: 'dummy.model'}, view);
|
{relation: 'dummy.model'}, view);
|
||||||
return f.expand("bob");
|
return f.expand("bob");
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue