From ba52762f10a4b1ef56dcfe98f66aecaafc812776 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 --- stock.xml | 12 ++++++++++++ tests/test_stock_quantity_early_planning.py | 4 +++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/stock.xml b/stock.xml index d824ab8835..4ace91f484 100644 --- a/stock.xml +++ b/stock.xml @@ -72,6 +72,18 @@ this repository contains the full copyright notices and license terms. --> + + User in companies + + + + + + + + open Reset to Open diff --git a/tests/test_stock_quantity_early_planning.py b/tests/test_stock_quantity_early_planning.py index b5b073bb7d..eba657eb7e 100644 --- a/tests/test_stock_quantity_early_planning.py +++ b/tests/test_stock_quantity_early_planning.py @@ -10,8 +10,10 @@ from trytond.tests.test_tryton import suite as test_suite from trytond.tests.test_tryton import doctest_teardown from trytond.tests.test_tryton import doctest_checker +from trytond.modules.company.tests import CompanyTestMixin -class StockQuantityEarlyPlanningTestCase(ModuleTestCase): + +class StockQuantityEarlyPlanningTestCase(CompanyTestMixin, ModuleTestCase): 'Test Stock Quantity Early Planning module' module = 'stock_quantity_early_planning' extras = ['production']