hello guys can i add button on main navigation bar at the top same line with the login user? thanks in advance :)
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project
- MRP
This question has been flagged
1
Reply
6531
Views
Create a custom xml template for the button ie
<templates>
<t t-name="MyModule.TopButtonMenu">
<li class="o_mail_navbar_item">
<button>My Button</button>
</li>
</t>
</templates>
And place it at the top menu with javascript
odoo.define('MyModule.TopButton', function(require) {
"use strict";
var SystrayMenu = require('web.SystrayMenu');
var TopButton = Widget.extend({
template:'MyModule.TopButtonMenu',
events: {
"click": "on_click"
},
on_click: function (event) {
//do action
}
});
SystrayMenu.Items.push(TopButton);
});
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
2
Oct 20
|
3607 | ||
|
0
Aug 19
|
3694 | ||
|
1
Aug 19
|
9985 | ||
|
2
Jul 23
|
784 | ||
|
0
May 20
|
2414 |