summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorXavier Dubuc <xdu@odoo.com>2020-08-18 14:09:07 +0000
committerAlexandre Kühn <aku@odoo.com>2020-08-19 09:29:42 +0000
commit36cf229dce44f1a32d2c452aefbda120375d342f (patch)
tree8218422a75640cf1432805cdfe3a73e8313d39ae /addons
parentdbe8bd543852ac416d9c5fc53c3ec1bfdaf3fa2d (diff)
[FIX] mail: use right chatter field for chatter prop value
task-2319706 closes odoo/odoo#56108 X-original-commit: 8955626b0f08be7364e715f0fdb91ef72a31f757 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Diffstat (limited to 'addons')
-rw-r--r--addons/mail/static/src/js/basic_view.js2
-rw-r--r--addons/mail/static/src/widgets/form_renderer/form_renderer.js2
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,