# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.addons.mass_mailing.tests.common import MassMailCommon from odoo.addons.test_mail.tests.common import TestMailCommon class TestMassMailCommon(MassMailCommon, TestMailCommon): @classmethod def setUpClass(cls): super(TestMassMailCommon, cls).setUpClass() # enforce last update by user_marketing to match _process_mass_mailing_queue # taking last writer as user running a batch cls.mailing_bl = cls.env['mailing.mailing'].with_user(cls.user_marketing).create({ 'name': 'SourceName', 'subject': 'MailingSubject', 'preview': 'Hi ${object.name} :)', 'body_html': """
Hello ${object.name}
, % set url = "www.odoo.com" % set httpurl = "https://www.odoo.eu" Website0: https://www.odoo.tz/my/${object.name} Website1: https://www.odoo.be Website2: https://${url} Website3: ${httpurl} External1: Youpie Internal1: Internal link Internal2: View link Email: test@odoo.comStop spam ? Ok