From 89df4f1da01963a3f28c783003cc827be3a9badb Mon Sep 17 00:00:00 2001 From: Raimon Esteve Date: Tue, 22 Mar 2022 18:50:37 +0100 Subject: [PATCH] Check rule only if _check_access is set and enforce companies rule issue4080 --- commission.xml | 2 +- tests/test_commission_manager.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/commission.xml b/commission.xml index 653120d..968f541 100644 --- a/commission.xml +++ b/commission.xml @@ -89,7 +89,7 @@ this repository contains the full copyright notices and license terms. --> diff --git a/tests/test_commission_manager.py b/tests/test_commission_manager.py index 5aab47f..d859024 100644 --- a/tests/test_commission_manager.py +++ b/tests/test_commission_manager.py @@ -7,9 +7,10 @@ from trytond.tests.test_tryton import ModuleTestCase from trytond.tests.test_tryton import suite as test_suite from trytond.tests.test_tryton import doctest_setup, doctest_teardown from trytond.tests.test_tryton import doctest_checker +from trytond.modules.company.tests import CompanyTestMixin -class CommissionManagerTestCase(ModuleTestCase): +class CommissionManagerTestCase(CompanyTestMixin, ModuleTestCase): 'Test Commission Manager module' module = 'commission_manager'