You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

28 lines
670 B

/** @odoo-module **/
import SystrayMenu from 'web.SystrayMenu';
import Widget from 'web.Widget';
const { Component } = owl;
var ActionMenu = Widget.extend({
template: 'global_mail_message.mail_icon',
events: {
'click .mail_icon': 'onclick_mail_icon',
},
onclick_mail_icon: function() {
var self = this;
self.do_action({
name: 'Compose Mail',
res_model: 'mail.compose.message',
views: [[false, 'form']],
type: 'ir.actions.act_window',
view_mode: 'form',
target: 'new'
});
},
});
SystrayMenu.Items.push(ActionMenu);
export default ActionMenu;