diff options
| author | Christophe Simonis <chs@odoo.com> | 2016-08-12 10:33:19 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2016-08-12 10:45:43 +0200 |
| commit | d7b7b07f9e9ead98d6ecc3e5ce3dca4d4a4a2b6f (patch) | |
| tree | 73545699d634e80cd1f5a3619e6b2f09f8e9f9ac /addons/mail/controllers | |
| parent | d1663f06e71f8e0e296c69ce0efdfc151aa986da (diff) | |
[FIX] mail: avoid errors in /longpolling/poll requests
When a request fail due to a database concurrency error, the request is
replayed. However, the `mail` overwrite of /longpolling/poll requests
modified its arguments inplace, which lead to a sanity check to failed
in case of retry.
Fixes #13121
Diffstat (limited to 'addons/mail/controllers')
| -rw-r--r-- | addons/mail/controllers/bus.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/mail/controllers/bus.py b/addons/mail/controllers/bus.py index e07248ff6fc..96d092f97b4 100644 --- a/addons/mail/controllers/bus.py +++ b/addons/mail/controllers/bus.py @@ -23,6 +23,7 @@ class MailChatController(openerp.addons.bus.controllers.main.BusController): partner_id = request.env.user.partner_id.id if partner_id: + channels = list(channels) # do not alter original list for mail_channel in request.env['mail.channel'].search([('channel_partner_ids', 'in', [partner_id])]): channels.append((request.db, 'mail.channel', mail_channel.id)) # personal and needaction channel |
