Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
2574 Vues

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
Avatar
Ignorer
Meilleure réponse

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.

Avatar
Ignorer
Publications associées Réponses Vues Activité
1
déc. 15
4180
2
déc. 15
635
0
mars 15
3519
1
mars 15
4542
3
juin 24
1634