Check rule only if _check_access is set and enforce companies rule

issue4080
review343891009
This commit is contained in:
Cédric Krier committed 2021-04-10 23:46:24 +02:00
1 parent 75d893e9b0
commit 9b2de6ce77
1 file changed
+3 -2
+3 -2
View File
@@ -15,7 +15,8 @@ from trytond.tests.test_tryton import doctest_teardown, doctest_checker
from trytond.tests.test_tryton import ModuleTestCase, with_transaction
from trytond.tests.test_tryton import suite as test_suite
from trytond.transaction import Transaction
from trytond.modules.company.tests import create_company, set_company
from trytond.modules.company.tests import (
create_company, set_company, CompanyTestMixin)
from ..exceptions import LoginException
CUSTOMER = {
@@ -43,7 +44,7 @@ ADDRESS_COMPANY['company'] = 'Saber'
ADDRESS_COMPANY['vat_id'] = 'BE0500923836'
class WebVueStorefrontTestCase(ModuleTestCase):
class WebVueStorefrontTestCase(CompanyTestMixin, ModuleTestCase):
'Test Web Shop Vue Storefront module'
module = 'web_shop_vue_storefront'
extras = [