diff --git a/addons/mail/static/src/js/mail.js b/addons/mail/static/src/js/mail.js index dbe7d54aade..b3fb0dab18f 100644 --- a/addons/mail/static/src/js/mail.js +++ b/addons/mail/static/src/js/mail.js @@ -1984,51 +1984,6 @@ openerp.mail = function (session) { } }); - - /** - * ------------------------------------------------------------ - * UserMenu - * ------------------------------------------------------------ - * - * Add a link on the top user bar for write a full mail - */ - session.web.ComposeMessageTopButton = session.web.Widget.extend({ - template:'mail.ComposeMessageTopButton', - - start: function () { - this.$el.on('click', this.on_compose_message); - this._super(); - }, - - on_compose_message: function (event) { - event.preventDefault(); - event.stopPropagation(); - var action = { - type: 'ir.actions.act_window', - res_model: 'mail.compose.message', - view_mode: 'form', - view_type: 'form', - views: [[false, 'form']], - target: 'new', - context: {}, - }; - session.client.action_manager.do_action(action); - }, - }); - - session.web.UserMenu.include({ - do_update: function(){ - var self = this; - this._super.apply(this, arguments); - this.update_promise.then(function() { - var mail_button = new session.web.ComposeMessageTopButton(); - mail_button.appendTo(session.webclient.$el.parents().find('.oe_systray')); - openerp.web.bus.trigger('resize'); // Re-trigger the reflow logic - }); - }, - }); - - /** * ------------------------------------------------------------ * Sub-widgets loading diff --git a/addons/mail/static/src/xml/mail.xml b/addons/mail/static/src/xml/mail.xml index c79b95224b1..86041cfcdae 100644 --- a/addons/mail/static/src/xml/mail.xml +++ b/addons/mail/static/src/xml/mail.xml @@ -335,18 +335,6 @@ - - -
  • - - - -
  • -
    -