Hi,
I added a button in the systray in odoo 12, now i want to call a wizard while click on the button
how can i do that
in .xml
<?xml version="1.0" encoding="UTF-8" ?>
<templates>
<t t-name="my_systray">
<li class="themes_selector_li">
<label class="switch" style="margin-bottom:0px;">
<div class="systray_click">
<i class="fa fa-bolt"/>
</div>
</label>
</li>
</t>
</templates>
in .js
odoo.define('top_bar_button.systray_button', function (require) {
"use strict";
var core = require('web.core');
var SystrayMenu = require('web.SystrayMenu');
var Widget = require('web.Widget');
var QWeb = core.qweb;
var ajax = require('web.ajax');
var MySystrayWidget = Widget.extend({
template: 'my_systray'
});
SystrayMenu.Items.push(MySystrayWidget);
});