[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
This commit is contained in:
Thibault Delavallée
2019-11-08 08:11:54 +00:00
parent f1baf1a793
commit 6befb1b400
-1
View File
@@ -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):