From e1d2f74786f4dafbec4edf4896a77a8ea6715911 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 10 Apr 2021 23:46:24 +0200 Subject: [PATCH] Check rule only if _check_access is set and enforce companies rule issue4080 review343891009 --- opportunity.xml | 40 +++++++++++++++++----------------- tests/test_sale_opportunity.py | 4 ++-- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/opportunity.xml b/opportunity.xml index cbd9efae68..2869faef42 100644 --- a/opportunity.xml +++ b/opportunity.xml @@ -206,16 +206,16 @@ this repository contains the full copyright notices and license terms. --> - - User in company of opportunity + + User in companies - + - + @@ -290,16 +290,16 @@ this repository contains the full copyright notices and license terms. --> - - User in company + + User in companies - + - + sequence="50" id="menu_opportunity_monthly_form"/> - - User in company + + User in companies - + - + @@ -390,16 +390,16 @@ this repository contains the full copyright notices and license terms. --> sequence="50" id="menu_opportunity_employee_monthly_form"/> - - User in company + + User in companies - + - + diff --git a/tests/test_sale_opportunity.py b/tests/test_sale_opportunity.py index 17aa50c6a9..e3048729a9 100644 --- a/tests/test_sale_opportunity.py +++ b/tests/test_sale_opportunity.py @@ -7,10 +7,10 @@ from trytond.tests.test_tryton import ModuleTestCase from trytond.tests.test_tryton import doctest_teardown from trytond.tests.test_tryton import doctest_checker -from trytond.modules.company.tests import CompanyMultiValueTestMixin +from trytond.modules.company.tests import CompanyTestMixin -class SaleOpportunityTestCase(CompanyMultiValueTestMixin, ModuleTestCase): +class SaleOpportunityTestCase(CompanyTestMixin, ModuleTestCase): 'Test SaleOpportunity module' module = 'sale_opportunity'