-
-
Notifications
You must be signed in to change notification settings - Fork 407
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] crm_phonecall: test performance improvement
- Include context keys for avoiding mail operations overhead.
- Loading branch information
1 parent
e9e0a40
commit d3675cd
Showing
1 changed file
with
10 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In 16.0, use
cls.env = cls.env(context=dict(cls.env.context, **DISABLED_MAIL_CONTEXT))
inestead. And add this import:from odoo.addons.base.tests.common import DISABLED_MAIL_CONTEXT