diff options
| author | Alexandre Kühn <aku@odoo.com> | 2019-07-18 09:54:51 +0000 |
|---|---|---|
| committer | Alexandre Kühn <aku@odoo.com> | 2019-07-18 10:12:16 +0000 |
| commit | cda4f3c308ca233aead81f5ae97d250b5b7bf82f (patch) | |
| tree | 6a30e729f50c4ea50abaed3be87b60a61d304806 | |
| parent | 18edb1c20529d820c023cf53a33e7d86ec061b3c (diff) | |
[FIX] mail: send ir.needaction notifications
Revision on https://github.com/odoo/odoo/commit/de7c119e666d108564b3889d1c08e5bf2e4da082
Partners are registered on notification channel
`(dbname, 'ir.needaction', partner_id)`.
closes odoo/odoo#34974
Signed-off-by: Xavier Dollé (xdo) <xdo@odoo.com>
| -rw-r--r-- | addons/mail/models/mail_thread.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/mail/models/mail_thread.py b/addons/mail/models/mail_thread.py index a49699badb0..662edbeac5d 100644 --- a/addons/mail/models/mail_thread.py +++ b/addons/mail/models/mail_thread.py @@ -2019,8 +2019,8 @@ class MailThread(models.AbstractModel): message_values = False if inbox_pids: message_values = message.message_format()[0] - for partner in self.env['res.partner'].browse(inbox_pids): - notifications.append([(self._cr.dbname, 'ir.needaction', partner), dict(message_values)]) + for partner_id in inbox_pids: + notifications.append([(self._cr.dbname, 'ir.needaction', partner_id), dict(message_values)]) if channel_ids: notifications += self.env['mail.channel'].sudo().browse(channel_ids)._channel_message_notifications(message, message_values) if partner_email_rdata: |
