Check rule only if _check_access is set and enforce companies rule

issue4080
review343891009
This commit is contained in:
Cédric Krier
2021-04-10 23:46:24 +02:00
parent 20dcb17c97
commit 4f006934d3
+3 -2
View File
@@ -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']