From ff15e4dc75a733850c8f8e814ee23e598b80f63f Mon Sep 17 00:00:00 2001 From: "Didier (did)" Date: Wed, 27 Apr 2022 10:07:50 +0000 Subject: [PATCH] [FIX] mail: fix suggestion list position and style in chatter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit task-2834429 Introduced by https://github.com/odoo/odoo/pull/89120 and https://github.com/odoo/odoo/pull/89146 closes odoo/odoo#89826 Signed-off-by: Alexandre Kühn (aku) --- addons/mail/static/src/models/composer_suggestion.js | 2 +- addons/mail/static/src/models/composer_view.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/mail/static/src/models/composer_suggestion.js b/addons/mail/static/src/models/composer_suggestion.js index a92ac757f59..9e3197076bf 100644 --- a/addons/mail/static/src/models/composer_suggestion.js +++ b/addons/mail/static/src/models/composer_suggestion.js @@ -128,7 +128,7 @@ registerModel({ }), isActive: attr({ compute: '_computeIsActive', - default: true, + default: false, }), /** * The text that identifies this suggestion in a mention. diff --git a/addons/mail/static/src/models/composer_view.js b/addons/mail/static/src/models/composer_view.js index a5005f43501..ea65aefcd2d 100644 --- a/addons/mail/static/src/models/composer_view.js +++ b/addons/mail/static/src/models/composer_view.js @@ -937,7 +937,7 @@ registerModel({ * @returns {boolean|FieldCommand} */ _computeHasMentionSuggestionsBelowPosition() { - if (this.threadView && this.threadView.threadViewer.chatter) { + if (this.chatter) { return true; } if (this.messageViewInEditing) {