|
|
@ -7,12 +7,26 @@ odoo.define('mail_to.tour', function (require) { |
|
|
|
var core = require('web.core'); |
|
|
|
var _t = core._t; |
|
|
|
|
|
|
|
var email = 'mail_private test email'; |
|
|
|
var steps = [{ |
|
|
|
var steps = [tour.STEPS.SHOW_APPS_MENU_ITEM, { |
|
|
|
trigger: '.o_app[data-menu-xmlid="mail.menu_root_discuss"]', |
|
|
|
content: _t('Want to <b>get in touch</b> with your contacts? <i>Discuss with them here.</i>'), |
|
|
|
position: 'right', |
|
|
|
edition: 'community', |
|
|
|
},{ |
|
|
|
trigger: '.fa.fa-plus.o_add[data-type="public"]', |
|
|
|
position: 'right', |
|
|
|
edition: 'community', |
|
|
|
run: function (actions) { |
|
|
|
$('.o_input.ui-autocomplete-input').val("Channel #" + String(new Date().getTime())); |
|
|
|
$('.o_input.ui-autocomplete-input').keydown(); |
|
|
|
setTimeout(function(){ |
|
|
|
$('.ui-menu-item > a').click(); |
|
|
|
}, 1000); |
|
|
|
}, |
|
|
|
},{ |
|
|
|
trigger: 'a.recipient_link:first', |
|
|
|
content: _t("Open Partners Form From Recipient Link"), |
|
|
|
position: 'bottom', |
|
|
|
timeout: 70000, |
|
|
|
}]; |
|
|
|
|
|
|
|
tour.register('mail_to_tour', { test: true, url: '/web' }, steps); |
|
|
|