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

Hi all, 

In my company we are looking for a way to better notify users of whats happening in odoo (Chat and Activities) - is there any way to show the notifications as browser popups?


Also, is there a way to do the same thing in the odoo mobile app?

Emails are ok but i need real push messages...


Thank you!


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

You can allow Odoo to send you notifications through your browser, that also is possible for the Odoo App. So you get those standard notifications of your OS.







obd.digital

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

How exactly can push popup notifications be set up? We have enabled in user settings "Notification: Handle in Odoo" (instead of Email). But this only enables an alert on the small bell in the upper right of the page but no system messages. How could we we make system messages work?


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,

In odoo, you can send sticky notifications by using the code


def sticky_notif(self):

    return {

            'type': 'ir.actions.client',

            'tag': 'display_notification',

            'params': {

                'message': _("Sample sticky notification"),

                'type': 'success',

            },

        }


The notification will be appear like


Hope it helps

Ảnh đại diện
Huỷ bỏ

@Cybrosys Techno Solutions Pvt.Ltd,

Relative to the OP's initial inquiry, where do you propose this code you shared goes? That is, where would it be used, both in this specific case AND in other cases?

Thanks in advance.

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 12 24
1430
0
thg 2 24
1513
0
thg 4 17
12939
1
thg 7 24
3418
5
thg 7 25
2416