From df218755a1fa9eed5748e5d49d0b4dcc30729d91 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 --- price_list.xml | 10 +++++----- tests/test_product_price_list.py | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/price_list.xml b/price_list.xml index 5dd5eca1f1..6d05548790 100644 --- a/price_list.xml +++ b/price_list.xml @@ -54,16 +54,16 @@ this repository contains the full copyright notices and license terms. --> - - User in company + + User in companies - + - + diff --git a/tests/test_product_price_list.py b/tests/test_product_price_list.py index 0f475c923d..8754185366 100644 --- a/tests/test_product_price_list.py +++ b/tests/test_product_price_list.py @@ -7,10 +7,10 @@ from trytond.tests.test_tryton import ModuleTestCase, with_transaction from trytond.pool import Pool from trytond.modules.company.tests import ( - create_company, set_company, CompanyMultiValueTestMixin) + create_company, set_company, CompanyTestMixin) -class ProductPriceListTestCase(CompanyMultiValueTestMixin, ModuleTestCase): +class ProductPriceListTestCase(CompanyTestMixin, ModuleTestCase): 'Test ProductPriceList module' module = 'product_price_list'