Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2713 Lượt xem

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
Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 12 15
4329
2
thg 12 15
635
0
thg 3 15
3627
1
thg 3 15
4642
3
thg 6 24
1739