From 4f006934d3ff5fc81bc98464aaa9762014dc41f7 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_shipment_measurements.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_stock_shipment_measurements.py b/tests/test_stock_shipment_measurements.py index 69118a8baf..fceb95eaf7 100644 --- a/tests/test_stock_shipment_measurements.py +++ b/tests/test_stock_shipment_measurements.py @@ -9,10 +9,11 @@ from trytond.tests.test_tryton import (ModuleTestCase, activate_module, with_transaction) from trytond.tests.test_tryton import suite as test_suite -from trytond.modules.company.tests import create_company, set_company +from trytond.modules.company.tests import ( + create_company, set_company, CompanyTestMixin) -class StockShipmentMeasurementsTestCase(ModuleTestCase): +class StockShipmentMeasurementsTestCase(CompanyTestMixin, ModuleTestCase): 'Test Stock Shipment Measurements module' module = 'stock_shipment_measurements' extras = ['stock_package']