From 131d76bf831c1683669dddc118ac9da8d147bc0b 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_issue.py | 4 +++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/stock.xml b/stock.xml index 2237477ebb..7567447c66 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_issue.py b/tests/test_stock_quantity_issue.py index 1ccca588a7..11d4ed7413 100644 --- a/tests/test_stock_quantity_issue.py +++ b/tests/test_stock_quantity_issue.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 StockQuantityIssueTestCase(ModuleTestCase): + +class StockQuantityIssueTestCase(CompanyTestMixin, ModuleTestCase): 'Test Stock Quantity Issue module' module = 'stock_quantity_issue' extras = ['production']