Hey people, i wanna create a button to check my pending tickets, i have already the view but i want to set a new button to have even a quiker acces and i thought adding next to the chat one or activities would be great, but i have no clue and dont see any info or documentation, thanks so much
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- 客户关系管理
- e-Commerce
- 会计
- 库存
- PoS
- Project
- MRP
此问题已终结
1
回复
1537
查看
Hello Marcos,
To add button on top menu next to chat button, we need to register component in Systray. Here is odoo office document. please look into that
import { registry } from "@web/core/registry"; class MySystrayItem extends Component { // some component ... } registry.category("systray").add("myAddon.myItem", { Component: MySystrayItem, });
The systray registry is an ordered registry (with the sequence number):
const item = { Component: MySystrayItem }; registry.category("systray").add("myaddon.some_description", item, { sequence: 43 });
Thanks,
Vimal Rughani (Founder and CTO)
Himanjali Intelligent Automation Pvt Ltd
Contact: +91- 972-606-7737
Email: hello@himanjali.com
Newsletter: The Odoo Scoop
Website: www.himanjali.com
相关帖文 | 回复 | 查看 | 活动 | |
---|---|---|---|---|
|
0
9月 24
|
1196 | ||
|
1
5月 24
|
1708 | ||
|
3
5月 24
|
1939 | ||
|
1
5月 25
|
1365 | ||
|
1
6月 25
|
1714 |