[REM] useless icon send a message

The action is available from the wall.
This commit is contained in:
Antony Lesuisse
2014-06-30 01:51:40 +02:00
parent e634ec806f
commit 5209fbc7ed
2 changed files with 0 additions and 57 deletions
-45
View File
@@ -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
-12
View File
@@ -335,18 +335,6 @@
</div>
</t>
<!--
mail.compose_message.button_top_bar
render of the button on the user bar for open wizard compose message
-->
<t t-name="mail.ComposeMessageTopButton">
<li title='Compose new Message'>
<a href="#">
<i id="oe_topbar_compose_full_email_icon" class="fa fa-envelope-o"/>
</a>
</li>
</t>
<!-- mail.thread.message.vote
Template used to display Like/Unlike in a mail.message
-->