summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/js/basic_view.js
diff options
context:
space:
mode:
authorSébastien Theys <seb@odoo.com>2020-10-06 15:40:32 +0000
committerSébastien Theys <seb@odoo.com>2020-10-07 11:03:26 +0000
commit415683c575c1b6ce3e0591a65df20d687790dd18 (patch)
treea6be46fb334ebfd0c03e34a7abaaab5e71be0652 /addons/mail/static/src/js/basic_view.js
parent29e7e70e9452f354247f98412d925d1f17e5f86b (diff)
[FIX] mail: clean up relations between chatter and thread
This will prevent various flicker when using previous/next. task-2243518 closes odoo/odoo#59375 X-original-commit: 1559e82e6b781601286003c2aff364dbb19c9bfc Related: odoo/enterprise#13868 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Diffstat (limited to 'addons/mail/static/src/js/basic_view.js')
-rw-r--r--addons/mail/static/src/js/basic_view.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/addons/mail/static/src/js/basic_view.js b/addons/mail/static/src/js/basic_view.js
index b6cdfa25370..4c5c9a1202d 100644
--- a/addons/mail/static/src/js/basic_view.js
+++ b/addons/mail/static/src/js/basic_view.js
@@ -17,8 +17,10 @@ BasicView.include({
hasRecordReloadOnAttachmentsChanged: post_refresh === 'always',
hasRecordReloadOnMessagePosted: !!post_refresh,
hasRecordReloadOnFollowersUpdate: !!followers_post_refresh,
- isAttachmentBoxVisible: this._getFieldOption('message_ids', 'open_attachments', false)
- || this._getFieldOption('message_follower_ids', 'open_attachments', false),
+ isAttachmentBoxVisibleInitially: (
+ this._getFieldOption('message_ids', 'open_attachments', false) ||
+ this._getFieldOption('message_follower_ids', 'open_attachments', false)
+ ),
};
const fieldsInfo = this.fieldsInfo[this.viewType];
this.rendererParams.chatterFields = this.chatterFields;