From abd0be2dedafe4325629cbac9cdc78eecb8633d3 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 --- account.xml | 10 +++++----- invoice.xml | 32 ++++++++++++++++++++++---------- tests/test_account_invoice.py | 5 ++--- 3 files changed, 29 insertions(+), 18 deletions(-) diff --git a/account.xml b/account.xml index 0a3edc778f..7b0353a976 100644 --- a/account.xml +++ b/account.xml @@ -94,17 +94,17 @@ this repository contains the full copyright notices and license terms. --> - - User in company + + User in companies - + - + diff --git a/invoice.xml b/invoice.xml index 32a02f85f1..e29ab166d1 100644 --- a/invoice.xml +++ b/invoice.xml @@ -347,6 +347,18 @@ this repository contains the full copyright notices and license terms. --> sequence="50" id="menu_payment_method_form"/> + + User in companies + + + + + + + + @@ -380,28 +392,28 @@ this repository contains the full copyright notices and license terms. --> - - User in company + + User in companies - + - + - - User in company + + User in companies - + - + diff --git a/tests/test_account_invoice.py b/tests/test_account_invoice.py index 458d1bd870..12691106f8 100644 --- a/tests/test_account_invoice.py +++ b/tests/test_account_invoice.py @@ -11,7 +11,7 @@ from trytond.tests.test_tryton import doctest_checker from trytond.pool import Pool from trytond.modules.company.tests import ( - PartyCompanyCheckEraseMixin, CompanyMultiValueTestMixin) + PartyCompanyCheckEraseMixin, CompanyTestMixin) from trytond.modules.currency.tests import create_currency from ..exceptions import PaymentTermValidationError @@ -41,8 +41,7 @@ def set_invoice_sequences(fiscalyear): class AccountInvoiceTestCase( - PartyCompanyCheckEraseMixin, CompanyMultiValueTestMixin, - ModuleTestCase): + PartyCompanyCheckEraseMixin, CompanyTestMixin, ModuleTestCase): 'Test AccountInvoice module' module = 'account_invoice'