From b97054ff3b4611df65f1e0a0d8cdfdadd3126067 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 10 Apr 2021 23:46:23 +0200 Subject: [PATCH] Check rule only if _check_access is set and enforce companies rule issue4080 review343891009 --- payment.xml | 18 +++++++++--------- tests/test_account_payment_sepa.py | 4 ++-- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/payment.xml b/payment.xml index 98e8b0d42d..a60b32415a 100644 --- a/payment.xml +++ b/payment.xml @@ -85,16 +85,16 @@ this repository contains the full copyright notices and license terms. --> sequence="30" id="menu_mandate_form"/> - + User in company - + - + @@ -229,17 +229,17 @@ this repository contains the full copyright notices and license terms. --> sequence="50" id="menu_message_form"/> - - User in company + + User in companies - + - + diff --git a/tests/test_account_payment_sepa.py b/tests/test_account_payment_sepa.py index 84f3a362ad..c7f7ee31fd 100644 --- a/tests/test_account_payment_sepa.py +++ b/tests/test_account_payment_sepa.py @@ -16,7 +16,7 @@ from trytond.pool import Pool from trytond.modules.currency.tests import create_currency from trytond.modules.company.tests import ( - create_company, set_company, CompanyMultiValueTestMixin) + create_company, set_company, CompanyTestMixin) from trytond.modules.account.tests import create_chart @@ -148,7 +148,7 @@ def validate_file(flavor, kind, xsd=None): schema.assertValid(sepa_xml) -class AccountPaymentSepaTestCase(CompanyMultiValueTestMixin, ModuleTestCase): +class AccountPaymentSepaTestCase(CompanyTestMixin, ModuleTestCase): 'Test Account Payment SEPA module' module = 'account_payment_sepa'