projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53aa92d
)
[FIX] update autocomplete test
author
Géry Debongnie
<ged@odoo.com>
Thu, 18 Sep 2014 09:50:25 +0000
(11:50 +0200)
committer
Gé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
patch
|
blob
|
history
diff --git
a/addons/web/static/test/search.js
b/addons/web/static/test/search.js
index
828347b
..
911c41e
100644
(file)
--- 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");
});