From 6befb1b4007ef426d3464f2ae4a5186f8e8c2497 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Fri, 8 Nov 2019 08:11:54 +0000 Subject: [PATCH] [FW][FIX] mail: use queue to send channel guidelines Commit 775e8a9 forced channel guidelines to be sent directly. It seems safer to use the cron queue as we do not see any evidence of daily use of channel guidelines requiring immediate sending. Task ID 2121319 PR #39986 FW PR #39978 --- addons/mail/models/mail_channel.py | 1 - 1 file changed, 1 deletion(-) diff --git a/addons/mail/models/mail_channel.py b/addons/mail/models/mail_channel.py index a2f211c3fa0..83727722692 100644 --- a/addons/mail/models/mail_channel.py +++ b/addons/mail/models/mail_channel.py @@ -424,7 +424,6 @@ class Channel(models.Model): 'recipient_ids': [(4, partner.id)] } mail = self.env['mail.mail'].create(create_values) - mail.send() return True def _update_moderation_email(self, emails, status):