summaryrefslogtreecommitdiff
path: root/addons/web
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2012-11-16 10:43:55 +0100
committerXavier Morel <xmo@openerp.com>2012-11-16 10:43:55 +0100
commit90f1015dee2c3bb3e8e7dc8ba66b982104e1a7ed (patch)
tree76c6eff1cb728b1e47b10afff47ee692816a1556 /addons/web
parent76cce62c999514b493919f843f5bd45024bb5c1d (diff)
[FIX] list button test: no call_button result now triggers an act_window_close
bzr revid: xmo@openerp.com-20121116094355-bsbxb0ufpjqx5j50
Diffstat (limited to 'addons/web')
-rw-r--r--addons/web/static/test/list.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/web/static/test/list.js b/addons/web/static/test/list.js
index 63cc16a5022..1f4b23b3155 100644
--- a/addons/web/static/test/list.js
+++ b/addons/web/static/test/list.js
@@ -44,7 +44,9 @@ $(document).ready(function () {
return {result: false};
};
var ds = new instance.web.DataSetStatic(null, 'demo', null, [1, 2, 3]);
- var l = new instance.web.ListView({}, ds, false, {editable: 'top'});
+ var l = new instance.web.ListView({
+ do_action: openerp.testing.noop
+ }, ds, false, {editable: 'top'});
l.appendTo($fix)
.then(l.proxy('reload_content'))
.then(function () {