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"}) diff --git a/crm_phonecall_planner/tests/test_planner.py b/crm_phonecall_planner/tests/test_planner.py index c7632b55b91..82dbdd8ff57 100644 --- a/crm_phonecall_planner/tests/test_planner.py +++ b/crm_phonecall_planner/tests/test_planner.py @@ -15,6 +15,16 @@ class PlannerCase(SavepointCase): @classmethod def setUpClass(cls): super(PlannerCase, cls).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.mondays = cls.env["resource.calendar"].create( { "name": "mondays", diff --git a/crm_project/tests/test_crm_project.py b/crm_project/tests/test_crm_project.py index a6e2080d5ef..29ef20f79ba 100644 --- a/crm_project/tests/test_crm_project.py +++ b/crm_project/tests/test_crm_project.py @@ -9,6 +9,16 @@ class TestCrmProject(common.TransactionCase): @classmethod def setUpClass(cls): 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.lead = cls.env["crm.lead"].create( { "name": "Test lead",