Skip to content

Commit

Permalink
Merge PR #523 into 15.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Oct 17, 2023
2 parents ddc1e41 + bc321fc commit 6a2661f
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
10 changes: 10 additions & 0 deletions crm_phonecall/tests/test_crm_phonecall.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"})
Expand Down
10 changes: 10 additions & 0 deletions crm_phonecall_planner/tests/test_planner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
10 changes: 10 additions & 0 deletions crm_project/tests/test_crm_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 6a2661f

Please sign in to comment.