diff --git a/addons/mail/tests/__init__.py b/addons/mail/tests/__init__.py index e56729715bd..16748da1302 100644 --- a/addons/mail/tests/__init__.py +++ b/addons/mail/tests/__init__.py @@ -4,6 +4,7 @@ from . import test_mail_channel from . import test_mail_channel_as_guest from . import test_mail_channel_partner +from . import test_mail_composer from . import test_mail_full_composer from . import test_mail_render from . import test_mail_template diff --git a/addons/mail/tests/test_mail_composer.py b/addons/mail/tests/test_mail_composer.py new file mode 100644 index 00000000000..8dd6c5614f1 --- /dev/null +++ b/addons/mail/tests/test_mail_composer.py @@ -0,0 +1,84 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from odoo.tests import users +from odoo.addons.mail.tests.common import MailCommon + + +class TestMailComposer(MailCommon): + @classmethod + def setUpClass(cls): + super(TestMailComposer, cls).setUpClass() + cls.env['ir.config_parameter'].set_param('mail.restrict.template.rendering', True) + cls.user_employee.groups_id -= cls.env.ref('mail.group_mail_template_editor') + cls.test_record = cls.env['res.partner'].with_context(cls._test_context).create({ + 'name': 'Test', + }) + cls.body_html = """
Here! + + A link for you! + + Make good use of it.
+Here! + A link for you! + Make good use of it.
+Here! + A link for you! + Make good use of it.
+