Skip to Content
Menú
This question has been flagged

I understand the default behavior to not send every participant a push notification for every message posted to a discuss channel, because in a large channel the quantity of messages could be crazy.  However, some channels are intended for critical notices and participants should receive push notifications when messages are posted, without the need to @ a person directly.

I'm fairly close to getting an Automated Action to work for sending Push Notifications to All Discuss Channel Participants, but it results in the push messages being posted to the res.partner model.

Hoping some of the guru's here could help to modify the python code so that it doesn't create extra messages, but instead just adds all the participants as notified people on the message.

Note: 
I do have the settings for the discuss channel to notify on All Messages, and we do get the notification badge in our little chat bubble at the top of the browser, but we want push on our phones as well.




----




Avatar
Descartar
Best Answer

Why not just have each User download the Android or iOS App for Odoo and login to the database to receive notifications on their Phones?

Avatar
Descartar
Autor

Added photos of the trigger and code. The forum wasn't working to add them when I first posted.

@Ray Carnes unless you callout a user with the @ sign while posting a message to the discuss channel, they will not get a push message to their mobile phone. That is my experience using either the iOS app or the PWA.

Autor

Ray, I reinstalled the iOS app just to retest (we are all using the PWA now instead of the native App).

We definitely do not receive push notifications unless we @ someone in a discuss channel.

We do get push notifications for direct chats between 2 people. Looking into the DB, 2 person chat is just a discuss.channel but it has the type of chat instead of group or channel.

Apparently this feature was lost in Odoo 15. It is on the roadmap to restore in Odoo 18. https://github.com/odoo/odoo/pull/162401

Autor

OK good news it will be fixed in V18, but realistic use of V18 is almost a year away for any users with customizations.

Anyone have thoughts on how to fix the automated action to bring this type of functionality into play now? Like I said the automated action I posted is successfully notifying all the participants of a channel, it is just doing it in the wrong way. It creates separate messages for each user, and posts the notification to their res.partner chatter.

Related Posts Respostes Vistes Activitat
0
de nov. 23
1570
1
de des. 24
1414
3
de des. 24
3337
0
de nov. 23
4442
0
d’abr. 17
12911