Enable Dark Mode!
By: Musthafa

How to Add an Icon in Systray in Odoo 15

Technical Odoo 15

Systray is the top navbar of Odoo interface. The main objective of systray is to give quick access to important functionalities with a single click. In Odoo, the default icons include a drop-down list linked to the installed username and the app launcher icon. However, the systray can be customized.

The marked space shown in the below screenshot is the systray.


Let’s look at how we can add an icon to the systray.

First, let’s make the view for the icon to show in the systray.

<?xml version="1.0" encoding="UTF-8" ?>
  <t t-name="SaleOrderSystray">
      <div class="new_icon">
             <div class="icon_div">
                 <div class="toggle-icon" role="button">
                     <i id='create_so' class="fa fa-plus-square-o" role="img" aria-label="Create Sale Order"/>

The above template will add a square plus button to the systray. While clicking on the square plus button you will get a popup wizard to create a new sale order.

After adding the template to show the icon in the systray menu we also need to add some javascript code.

/** @odoo-module **/
import SystrayMenu from 'web.SystrayMenu';
import Widget from 'web.Widget';
var ExampleWidget = Widget.extend({
   template: 'SaleOrderSystray',
   events: {
       'click #create_so': '_onClick',
   _onClick: function(){
            type: 'ir.actions.act_window',
            name: 'Sale Order',
            res_model: 'sale.order',
            view_mode: 'form',
            views: [[false, 'form']],
            target: 'new'
export default ExampleWidget;

First import the Widget and SystrayMenu classes. Then we need to extend the Widget class to create a new widget for our systray icon. Widgets are the most important tools to build a user interface in Odoo. Then we can specify the template or user interface of the widget. We can add events like click change etc… Here I have added a click event for the square plus icon which has an id of create_so. On that event, I gave a do_action to call the sale order.form. 

After creating the javascript and XML templates we need to add them in the manifest file like below.

'assets': {
   'web.assets_backend': {
   'web.assets_qweb': {

After installing the module you can see the square plus button on the systray menu.


On clicking on the square plus icon the sale form will open as a popup.


After the sale order form popups, you can fill the fields and you can save, discard, confirm or send the sale order by email from there.


After saving the sale order you can confirm or do anything that you can do on normal sale order in Odoo.

If you need any assistance in odoo, we are online, please chat with us.



Can you create tutorial how to remove/hide existing systray? thanks




Leave a comment




Cybrosys Technologies Pvt. Ltd.
Neospace, Kinfra Techno Park
Kakkancherry, Calicut
Kerala, India - 673635



Cybrosys Technologies Pvt. Ltd.
1st Floor, Thapasya Building,
Infopark, Kakkanad,
Kochi, India - 682030.



Cybrosys Techno Solutions
The Estate, 8th Floor,
Dickenson Road,
Bangalore, India - 560042

Send Us A Message