-
- Downloads
[REV] mail: fix a traceback when sending a message in a "email channel"
Bug === Since 4da64b3f , if multiple users of different companies are in the same channel, and if the type of the channel is "email", a traceback is raised when sending a message. Technical ========= "with_user" drop the SU flag and is not enough to bypass the multi company ACLs. Moreover, we do not want to send a "channel_seen" bus notifications and we can mark the message as seen on the JS side directly. Changes ======= So now, the traceback is not raised anymore in that case, and the message is marked as seen if the receiver has the web client open. But, if the receiver has not the web client open, when he will login, the message will not be marked as seen. This can be improved but at the moment we just want to revert the fix that cause the traceback and fix the issue in most cases. Task 2427790 closes odoo/odoo#65185 Signed-off-by:Thibault Delavallee (tde) <tde@openerp.com>
Showing
- addons/mail/models/mail_thread.py 1 addition, 8 deletionsaddons/mail/models/mail_thread.py
- addons/mail/static/src/models/messaging_notification_handler/messaging_notification_handler.js 4 additions, 0 deletions...ng_notification_handler/messaging_notification_handler.js
- addons/test_mail/tests/test_mail_channel.py 67 additions, 0 deletionsaddons/test_mail/tests/test_mail_channel.py
- addons/test_mail/tests/test_performance.py 1 addition, 1 deletionaddons/test_mail/tests/test_performance.py
Loading
Please register or sign in to comment