From 98dc3e50ec1466ff2f8ce9a5344d60a13944da7b Mon Sep 17 00:00:00 2001 From: Raimon Esteve Date: Fri, 25 Mar 2022 12:04:18 +0100 Subject: [PATCH] Check rule only if _check_access is set and enforce companies rule issue4080 --- analytic.xml | 2 +- tests/test_analytic_line_state.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/analytic.xml b/analytic.xml index 7484887..e46dc62 100644 --- a/analytic.xml +++ b/analytic.xml @@ -30,7 +30,7 @@ diff --git a/tests/test_analytic_line_state.py b/tests/test_analytic_line_state.py index 6ecff8b..d01f0fa 100644 --- a/tests/test_analytic_line_state.py +++ b/tests/test_analytic_line_state.py @@ -11,11 +11,12 @@ from trytond.tests.test_tryton import ModuleTestCase, with_transaction from trytond.transaction import Transaction from trytond.pool import Pool -from trytond.modules.company.tests import create_company, set_company +from trytond.modules.company.tests import (CompanyTestMixin, create_company, + set_company) from trytond.modules.account.tests import create_chart, get_fiscalyear -class TestCase(ModuleTestCase): +class TestCase(CompanyTestMixin, ModuleTestCase): ''' Test module. '''