changeset 797131ef742a in modules/stock_lot:default
details: https://hg.tryton.org/modules/stock_lot?cmd=changeset&node=797131ef742a
description:
Check rule only if _check_access is set and enforce companies rule
issue4080
review343891009
diffstat:
tests/test_stock_lot.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (17 lines):
diff -r 90fb37dd1e95 -r 797131ef742a tests/test_stock_lot.py
--- a/tests/test_stock_lot.py Thu Mar 11 23:00:10 2021 +0100
+++ b/tests/test_stock_lot.py Sat Apr 10 23:46:24 2021 +0200
@@ -13,10 +13,11 @@
from trytond.transaction import Transaction
from trytond.pool import Pool
-from trytond.modules.company.tests import create_company, set_company
+from trytond.modules.company.tests import (
+ create_company, set_company, CompanyTestMixin)
-class StockLotTestCase(ModuleTestCase):
+class StockLotTestCase(CompanyTestMixin, ModuleTestCase):
'Test Stock Lot module'
module = 'stock_lot'