diff --git a/crm_phonecall/tests/test_crm_phonecall.py b/crm_phonecall/tests/test_crm_phonecall.py index 6cb294b4158..843572b202d 100644 --- a/crm_phonecall/tests/test_crm_phonecall.py +++ b/crm_phonecall/tests/test_crm_phonecall.py @@ -11,6 +11,16 @@ class TestCrmPhoneCall(common.SavepointCase): def setUpClass(cls): """Created required data.""" super().setUpClass() + cls.env = cls.env( + context=dict( + cls.env.context, + mail_create_nolog=True, + mail_create_nosubscribe=True, + mail_notrack=True, + no_reset_password=True, + tracking_disable=True, + ) + ) cls.company = cls.env.ref("base.main_company") partner_obj = cls.env["res.partner"] cls.campaign1 = cls.env["utm.campaign"].create({"name": "campaign 1"})