diff --git a/addons/mail/static/src/js/chatter.js b/addons/mail/static/src/js/chatter.js index 7cabe960cdb..164a24cd7b8 100644 --- a/addons/mail/static/src/js/chatter.js +++ b/addons/mail/static/src/js/chatter.js @@ -89,18 +89,15 @@ var Chatter = Widget.extend({ */ start: function () { this._$topbar = this.$('.o_chatter_topbar'); - if(!this._disableAttachmentBox) { - this.$('.o_topbar_right_area').append(QWeb.render('mail.chatter.Attachment.Button', { - displayCounter: !!this.fields.thread, - count: this.record.data.message_attachment_count || 0, - })); - } // render and append the buttons this._$topbar.prepend(QWeb.render('mail.chatter.Buttons', { newMessageButton: !!this.fields.thread, logNoteButton: this.hasLogButton, scheduleActivityButton: !!this.fields.activity, isMobile: config.device.isMobile, + disableAttachmentBox: this._disableAttachmentBox, + displayCounter: !!this.fields.thread, + count: this.record.data.message_attachment_count || 0, })); // start and append the widgets var fieldDefs = _.invoke(this.fields, 'appendTo', $('
')); diff --git a/addons/mail/static/src/xml/chatter.xml b/addons/mail/static/src/xml/chatter.xml index 23202f608b9..c302320302c 100644 --- a/addons/mail/static/src/xml/chatter.xml +++ b/addons/mail/static/src/xml/chatter.xml @@ -110,7 +110,12 @@ - + + + + + +