diff --git a/product_brand/tests/common.py b/product_brand/tests/common.py index 5ec85e054..c0c17c2a0 100644 --- a/product_brand/tests/common.py +++ b/product_brand/tests/common.py @@ -5,12 +5,14 @@ from odoo.tests.common import TransactionCase +from odoo.addons.base.tests.common import DISABLED_MAIL_CONTEXT + class CommonCase(TransactionCase): @classmethod def setUpClass(cls): super().setUpClass() - cls.env = cls.env(context=dict(cls.env.context, tracking_disable=True)) + cls.env = cls.env(context=dict(cls.env.context, **DISABLED_MAIL_CONTEXT)) cls.product = cls.env.ref("product.product_product_4") cls.supplier = cls.env.ref("base.res_partner_2") cls.product_brand_obj = cls.env["product.brand"]