From d8eb77411c32c985aee3b69f4ea6d6d319774c7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Valent=C3=ADn=20Georgian=20Castravete?= Date: Wed, 3 Jul 2024 12:00:56 +0200 Subject: [PATCH] [IMP] Ignore message type --- mail_private_no_published/models/mail_message.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/mail_private_no_published/models/mail_message.py b/mail_private_no_published/models/mail_message.py index f3e1b29..7b13fcf 100644 --- a/mail_private_no_published/models/mail_message.py +++ b/mail_private_no_published/models/mail_message.py @@ -38,9 +38,6 @@ def _check_archive(self): def create(self, vals): res = super().create(vals) for rec in res: - if rec.subtype_id != self.env.ref('mail.mt_note'): - continue - partner_ids = rec.partner_ids.ids user_ids = self.env['res.users'].search([ ('partner_id', 'in', partner_ids),