Skip to content

Commit

Permalink
[IMP] sale_partner_company_group: test performance improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
josep-tecnativa authored and nguyenminhchien committed Oct 28, 2024
1 parent 9e051bc commit ec61911
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@ class TestSalePartnerCompanyGroup(TestBasePartnerCompanyGroup):
@classmethod
def setUpClass(cls):
super().setUpClass()
# Remove this variable in v16 and put instead:
# from odoo.addons.base.tests.common import DISABLED_MAIL_CONTEXT
DISABLED_MAIL_CONTEXT = {
"tracking_disable": True,
"mail_create_nolog": True,
"mail_create_nosubscribe": True,
"mail_notrack": True,
"no_reset_password": True,
}
cls.env = cls.env(context=dict(cls.env.context, **DISABLED_MAIL_CONTEXT))
currency = cls.env.ref("base.USD")
cls.pricelist1 = cls.env["product.pricelist"].create(
{"name": "Pricelist 01", "currency_id": currency.id}
Expand Down

0 comments on commit ec61911

Please sign in to comment.