From d1611ea7d9fbb30b99e36a1292b28d34b3a20d0d 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 --- tests/test_production_work.py | 4 ++-- work.xml | 30 +++++++++++++++--------------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/tests/test_production_work.py b/tests/test_production_work.py index 86d738660b..d42c31f46a 100644 --- a/tests/test_production_work.py +++ b/tests/test_production_work.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 ProductionWorkTestCase(CompanyMultiValueTestMixin, ModuleTestCase): +class ProductionWorkTestCase(CompanyTestMixin, ModuleTestCase): 'Test Production Work module' module = 'production_work' diff --git a/work.xml b/work.xml index c0a7dca5d5..defa6075d7 100644 --- a/work.xml +++ b/work.xml @@ -94,17 +94,17 @@ this repository contains the full copyright notices and license terms. --> - - User in company + + User in companies - + - + @@ -263,16 +263,16 @@ this repository contains the full copyright notices and license terms. --> - - User in company + + User in companies - + - + @@ -324,16 +324,16 @@ this repository contains the full copyright notices and license terms. --> search="[('model', '=', 'production.work.cycle')]"/> - - User in company + + User in companies - + - +