From d3778e88c61ea8137d006a02031dfd22556970a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 10 Apr 2021 23:46:23 +0200 Subject: [PATCH] Check rule only if _check_access is set and enforce companies rule issue4080 review343891009 --- tests/test_product_cost_warehouse.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_product_cost_warehouse.py b/tests/test_product_cost_warehouse.py index d782fd7d09..1e5810faad 100644 --- a/tests/test_product_cost_warehouse.py +++ b/tests/test_product_cost_warehouse.py @@ -10,8 +10,10 @@ from trytond.tests.test_tryton import suite as test_suite from trytond.tests.test_tryton import doctest_teardown from trytond.tests.test_tryton import doctest_checker +from trytond.modules.company.tests import CompanyTestMixin -class ProductCostWarehouseTestCase(ModuleTestCase): + +class ProductCostWarehouseTestCase(CompanyTestMixin, ModuleTestCase): 'Test Product Cost Warehouse module' module = 'product_cost_warehouse' extras = ['product_cost_history']