changeset 42c99edf7cc0 in modules/product_kit:default
details:
https://hg.tryton.org/modules/product_kit?cmd=changeset&node=42c99edf7cc0
description:
Check rule only if _check_access is set and enforce companies rule
issue4080
review343891009
diffstat:
tests/test_product_kit.py | 3 ++-
tryton.cfg | 1 +
2 files changed, 3 insertions(+), 1 deletions(-)
diffs (26 lines):
diff -r 24c22cbe4ee8 -r 42c99edf7cc0 tests/test_product_kit.py
--- a/tests/test_product_kit.py Sat Apr 10 16:06:47 2021 +0200
+++ b/tests/test_product_kit.py Sat Apr 10 23:46:23 2021 +0200
@@ -7,9 +7,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 ProductKitTestCase(ModuleTestCase):
+class ProductKitTestCase(CompanyTestMixin, ModuleTestCase):
'Test Product Kit module'
module = 'product_kit'
extras = ['sale', 'purchase']
diff -r 24c22cbe4ee8 -r 42c99edf7cc0 tryton.cfg
--- a/tryton.cfg Sat Apr 10 16:06:47 2021 +0200
+++ b/tryton.cfg Sat Apr 10 23:46:23 2021 +0200
@@ -5,6 +5,7 @@
product
extras_depend:
account_invoice_stock
+ company
purchase
purchase_amendment
sale