diff options
| author | Christophe Simonis <chs@odoo.com> | 2018-01-09 18:49:44 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2018-01-09 18:50:58 +0100 |
| commit | 81d03da3609a186876e5963519b5bd59e2d2be41 (patch) | |
| tree | ad29e832c4df93c1fb3126e9728eb2983af74c0f | |
| parent | 7e894aca0b3a0c79121214d059a850f4628d75bc (diff) | |
[FIX] mail: do search at the right time...
Oversight of previous forward-port
| -rw-r--r-- | addons/mail/static/src/js/client_action.js | 6 |
1 files 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($("<div>")).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(); }); }, /** |
