Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
1442 Widoki

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 

Awatar
Odrzuć
Najlepsza odpowiedź

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 });

https://www.odoo.com/documentation/15.0/developer/reference/frontend/registries.html#systray-registry


Thanks,
Vimal Rughani (Founder and CTO)
Himanjali Intelligent Automation Pvt Ltd
Contact:
 +91- 972-606-7737
Emailhello@himanjali.com 
NewsletterThe Odoo Scoop
Websitewww.himanjali.com


Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
wrz 24
1102
1
maj 24
1661
3
maj 24
1861
1
maj 25
1273
1
cze 25
1589