From 36cf229dce44f1a32d2c452aefbda120375d342f Mon Sep 17 00:00:00 2001 From: Xavier Dubuc Date: Tue, 18 Aug 2020 14:09:07 +0000 Subject: [PATCH] [FIX] mail: use right chatter field for chatter prop value MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit task-2319706 closes odoo/odoo#56108 X-original-commit: 8955626b0f08be7364e715f0fdb91ef72a31f757 Signed-off-by: Alexandre Kühn (aku) --- addons/mail/static/src/js/basic_view.js | 2 +- addons/mail/static/src/widgets/form_renderer/form_renderer.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/mail/static/src/js/basic_view.js b/addons/mail/static/src/js/basic_view.js index c8af4a75dd0..b6cdfa25370 100644 --- a/addons/mail/static/src/js/basic_view.js +++ b/addons/mail/static/src/js/basic_view.js @@ -17,7 +17,7 @@ BasicView.include({ hasRecordReloadOnAttachmentsChanged: post_refresh === 'always', hasRecordReloadOnMessagePosted: !!post_refresh, hasRecordReloadOnFollowersUpdate: !!followers_post_refresh, - isActivityBoxVisible: this._getFieldOption('message_ids', 'open_attachments', false) + isAttachmentBoxVisible: this._getFieldOption('message_ids', 'open_attachments', false) || this._getFieldOption('message_follower_ids', 'open_attachments', false), }; const fieldsInfo = this.fieldsInfo[this.viewType]; diff --git a/addons/mail/static/src/widgets/form_renderer/form_renderer.js b/addons/mail/static/src/widgets/form_renderer/form_renderer.js index 8e4ca059580..266d8c60f38 100644 --- a/addons/mail/static/src/widgets/form_renderer/form_renderer.js +++ b/addons/mail/static/src/widgets/form_renderer/form_renderer.js @@ -103,7 +103,7 @@ FormRenderer.include({ hasActivities: this.chatterFields.hasActivityIds, hasFollowers: this.chatterFields.hasMessageFollowerIds, hasThread: this.chatterFields.hasMessageIds, - isAttachmentBoxVisible: this.chatterFields.isActivityBoxVisible, + isAttachmentBoxVisible: this.chatterFields.isAttachmentBoxVisible, messageIds, threadAttachmentCount, threadId: this.state.res_id,