From bc321fcd44cde29df0481517adab44d4c0b37875 Mon Sep 17 00:00:00 2001 From: josep-tecnativa Date: Tue, 17 Oct 2023 16:11:52 +0200 Subject: [PATCH] [IMP] crm_project: test performance improvement --- crm_project/tests/test_crm_project.py | 10 ++++++++++ 1 file changed, 10 insertions(+) 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",