Skip to content

Commit

Permalink
[IMP] product_supplierinfo_for_customer: test performance improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
josep-tecnativa committed Oct 23, 2023
1 parent ef35ab6 commit ca1ee86
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 TestProductSupplierinfoForCustomer(TransactionCase):
@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))
cls.supplierinfo_model = cls.env["product.supplierinfo"]
cls.customerinfo_model = cls.env["product.customerinfo"]
cls.pricelist_item_model = cls.env["product.pricelist.item"]
Expand Down

0 comments on commit ca1ee86

Please sign in to comment.