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:
- 客戶關係
- e-Commerce
- 會計
- 庫存
- PoS
- Project
- MRP
此問題已被標幟
1
回覆
6679
瀏覽次數
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);
});
相關帖文 | 回覆 | 瀏覽次數 | 活動 | |
---|---|---|---|---|
|
2
10月 20
|
3767 | ||
|
0
8月 19
|
3803 | ||
|
1
8月 19
|
10121 | ||
|
2
7月 23
|
784 | ||
|
0
5月 20
|
2530 |