Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
2691 Vizualizări

I cant figure out why this notfication wont show. Its the exact format from another inbuilt module. I would appreciate your help

Im on v15


def _send_notification(self):
​if not self._is_applicable():
​return {
​'type': 'ir.actions.client',
​'tag': 'display_notification',
​'params': {
​'message': _("Nothing to send"),
​'type': 'info',
​'sticky': False,
​}
​# do other stuff
Imagine profil
Abandonează
Cel mai bun răspuns

Hi,

For creating display notifications, you can refer to the following blog: 

https://www.cybrosys.com/blog/how-to-create-display-notification-in-odoo-15#:~:text=If%20we%20set%20the%20boolean,it%20shows%20in%20blue%20color.


Hope it helps.

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
dec. 15
4287
2
dec. 15
635
0
mar. 15
3605
1
mar. 15
4635
3
iun. 24
1721