summaryrefslogtreecommitdiff
path: root/addons/web/static/tests/widgets
diff options
context:
space:
mode:
authorPriyanka Kakadiya <pka@odoo.com>2018-01-19 18:15:40 +0530
committerAaron Bohy <aab@odoo.com>2018-01-22 08:28:44 +0100
commit33d43c5af100aaf9474231b370e0547f7ceb3015 (patch)
tree551b3e73a959dee890b7cb07c0e0a7257e8b1c22 /addons/web/static/tests/widgets
parent6c211376f0faa9c72213a2efe2ea1b726d247678 (diff)
[FIX] web: traceback when exporting from list view
Former code of list controller used the searchView of its parent, which was the ViewManager. However, this has been changed by rev. 32b8cec53, where the ViewManager was removed, and the list controller now has the reference of the searchView, so this code had to be adapted. Tests have been adapted accordingly as well.
Diffstat (limited to 'addons/web/static/tests/widgets')
-rw-r--r--addons/web/static/tests/widgets/data_export_tests.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web/static/tests/widgets/data_export_tests.js b/addons/web/static/tests/widgets/data_export_tests.js
index 192944ce3b5..4569a5a6290 100644
--- a/addons/web/static/tests/widgets/data_export_tests.js
+++ b/addons/web/static/tests/widgets/data_export_tests.js
@@ -94,7 +94,7 @@ QUnit.module('widgets', {
},
});
- list.getParent().searchview = {
+ list.searchView = {
build_search_data: function () {
assert.step('build_search_data');
return {
@@ -171,7 +171,7 @@ QUnit.module('widgets', {
},
});
- list.getParent().searchview = {
+ list.searchView = {
build_search_data: function () {
assert.step('build_search_data');
return {