Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
2542 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
pro 15
4161
2
pro 15
635
0
bře 15
3508
1
bře 15
4529
3
čvn 24
1613