コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
2729 ビュー

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
アバター
破棄
最善の回答

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.

アバター
破棄
関連投稿 返信 ビュー 活動
1
12月 15
4340
2
12月 15
635
0
3月 15
3644
1
3月 15
4666
3
6月 24
1753