From 81d03da3609a186876e5963519b5bd59e2d2be41 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Tue, 9 Jan 2018 18:49:44 +0100 Subject: [PATCH] [FIX] mail: do search at the right time... Oversight of previous forward-port --- addons/mail/static/src/js/client_action.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/mail/static/src/js/client_action.js b/addons/mail/static/src/js/client_action.js index 8e0e442b290..2b5b342787b 100644 --- a/addons/mail/static/src/js/client_action.js +++ b/addons/mail/static/src/js/client_action.js @@ -166,9 +166,6 @@ var ChatAction = Widget.extend(ControlPanelMixin, { this.basic_composer.on('input_focused', this, this._onComposerFocused); this.extended_composer.on('post_message', this, this._onPostMessage); this.extended_composer.on('input_focused', this, this._onComposerFocused); - // manually call do_search to generate the initial domain and filter - // the messages in the default channel - self.searchview.do_search(); var defs = []; defs.push(this._renderButtons()); @@ -384,6 +381,9 @@ var ChatAction = Widget.extend(ControlPanelMixin, { this.searchview = new SearchView(this, this.dataset, this.fields_view, options); return this.searchview.appendTo($("
")).then(function () { self.$searchview_buttons = self.searchview.$buttons.contents(); + // manually call do_search to generate the initial domain and filter + // the messages in the default channel + self.searchview.do_search(); }); }, /**