diff options
| author | Priyanka Kakadiya <pka@odoo.com> | 2021-02-17 12:20:25 +0000 |
|---|---|---|
| committer | Priyanka Kakadiya <pka@odoo.com> | 2021-03-10 05:11:06 +0000 |
| commit | c65dff39af6ff84d6be8d9f28684773e32c0e8ca (patch) | |
| tree | 5780b0bfdfd943bb2a860d5e63776561e4b4b818 | |
| parent | 9c7bb7637f9210a2bf373878ea03a0ee885c4702 (diff) | |
[FIX] mail: notification not sent when using the full composer
Current behavior before PR:
mail notification not sent when using the full composer.
Desired behavior after PR is merged:
mail notification will send when using the full composer.
LINKS:
PR https://github.com/odoo/odoo/pull/66421
Task-2446855
closes odoo/odoo#66421
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
| -rw-r--r-- | addons/mail/models/mail_thread.py | 2 | ||||
| -rw-r--r-- | addons/test_mail/tests/test_performance.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/addons/mail/models/mail_thread.py b/addons/mail/models/mail_thread.py index db478e10812..57cccb22265 100644 --- a/addons/mail/models/mail_thread.py +++ b/addons/mail/models/mail_thread.py @@ -1830,7 +1830,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 d7c2e07066a..78374b25e47 100644 --- a/addons/test_mail/tests/test_performance.py +++ b/addons/test_mail/tests/test_performance.py @@ -977,7 +977,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=81): + with self.assertQueryCount(emp=82): self.cr.sql_log = self.warm and self.cr.sql_log_count record.with_context({}).message_post( body='<p>Test body <img src="cid:cid1"> <img src="cid:cid2"></p>', |
