diff --git a/addons/mail/models/mail_thread.py b/addons/mail/models/mail_thread.py index 5e606a5c473..97313b06cc8 100644 --- a/addons/mail/models/mail_thread.py +++ b/addons/mail/models/mail_thread.py @@ -1792,7 +1792,7 @@ class MailThread(models.AbstractModel): if subtype_xmlid: subtype_id = self.env['ir.model.data'].xmlid_to_res_id(subtype_xmlid) if not subtype_id: - subtype_id = self.env['ir.model.data'].xmlid_to_res_id('mail_mt_note') + subtype_id = self.env['ir.model.data'].xmlid_to_res_id('mail.mt_note') # automatically subscribe recipients if asked to if self._context.get('mail_post_autofollow') and partner_ids: diff --git a/addons/test_mail/tests/test_performance.py b/addons/test_mail/tests/test_performance.py index ff4749c98ee..0edd404c16d 100644 --- a/addons/test_mail/tests/test_performance.py +++ b/addons/test_mail/tests/test_performance.py @@ -932,7 +932,7 @@ class TestMailHeavyPerformancePost(BaseMailPerformance): ] self.attachements = self.env['ir.attachment'].with_user(self.env.user).create(self.vals) attachement_ids = self.attachements.ids - with self.assertQueryCount(emp=65): + with self.assertQueryCount(emp=66): self.cr.sql_log = self.warm and self.cr.sql_log_count record.with_context({}).message_post( body='
Test body