Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
2678 Ansichten

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
Verwerfen
Beste Antwort

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
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
1
Dez. 15
4284
2
Dez. 15
635
0
März 15
3602
1
März 15
4634
3
Juni 24
1718