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
Dette spørgsmål er blevet anmeldt
1
Svar
3103
Visninger
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

Kan du lide at diskutere? Læs ikke bare med, deltag aktivt i debatten!
Opret en konto i dag for at få glæde af eksklusive funktioner, og bliv en del af vores skønne fællesskab!
Tilmeld dig| Relaterede indlæg | Besvarelser | Visninger | Aktivitet | |
|---|---|---|---|---|
|
|
0
apr. 26
|
30 | ||
|
|
0
apr. 26
|
17 | ||
|
|
0
sep. 24
|
2528 | ||
|
|
1
maj 24
|
3142 | ||
|
|
3
maj 24
|
3438 |