[FIX] Mail: mail.js Favorite search loading

In Messaging, default filters were never loaded because the action
wasn't given as argument to the searchview initialization. The action is
required for the filters to be loaded since rev. 5cd78b891b.
This commit is contained in:
Aaron Bohy
2015-03-12 14:16:45 +01:00
parent 10e13cdb25
commit 2c1e81a4a0
+4 -1
View File
@@ -1981,7 +1981,10 @@ openerp.mail = function (session) {
load_searchview: function (defaults) {
var self = this,
ds_msg = new session.web.DataSetSearch(this, 'mail.message'),
options = { $buttons: this.$('.oe-search-options') };
options = {
$buttons: this.$('.oe-search-options'),
action: this.action,
};
this.searchview = new session.web.SearchView(this, ds_msg, false, defaults || {}, options);
this.searchview.on('search_data', this, this.do_searchview_search);
this.searchview.appendTo(this.$('.oe-view-manager-search-view')).then(function () {