From ca1ee86e2a1c00cd6b8f0a016faef4c87a777789 Mon Sep 17 00:00:00 2001 From: josep-tecnativa Date: Mon, 23 Oct 2023 17:10:10 +0200 Subject: [PATCH] [IMP] product_supplierinfo_for_customer: test performance improvement --- .../tests/test_product_supplierinfo_for_customer.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/product_supplierinfo_for_customer/tests/test_product_supplierinfo_for_customer.py b/product_supplierinfo_for_customer/tests/test_product_supplierinfo_for_customer.py index 8139504b6fd..359a5ad60db 100644 --- a/product_supplierinfo_for_customer/tests/test_product_supplierinfo_for_customer.py +++ b/product_supplierinfo_for_customer/tests/test_product_supplierinfo_for_customer.py @@ -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"]