From 9122d1ddfddcbd5f31ef5b63d4e46958c679f20a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 10 Apr 2021 23:46:24 +0200 Subject: [PATCH] Check rule only if _check_access is set and enforce companies rule issue4080 review343891009 --- tests/test_stock_lot.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_stock_lot.py b/tests/test_stock_lot.py index a380170d8e..23895166d4 100644 --- a/tests/test_stock_lot.py +++ b/tests/test_stock_lot.py @@ -13,10 +13,11 @@ from trytond.tests.test_tryton import doctest_checker from trytond.transaction import Transaction from trytond.pool import Pool -from trytond.modules.company.tests import create_company, set_company +from trytond.modules.company.tests import ( + create_company, set_company, CompanyTestMixin) -class StockLotTestCase(ModuleTestCase): +class StockLotTestCase(CompanyTestMixin, ModuleTestCase): 'Test Stock Lot module' module = 'stock_lot'