Add check for default model access

When group access exists, a default model access should be defined otherwise
all access are given to non group users.

issue4485
review5941002
This commit is contained in:
Cédric Krier committed 2015-01-27 18:14:20 +01:00
1 parent fece438d7d
commit 94356ff638
3 files changed
+25

No files matched your search

+2
View File
@@ -94,4 +94,6 @@ setup(name=name,
[trytond.modules]
stock_supply_forecast = trytond.modules.stock_supply_forecast
""",
test_suite='tests',
test_loader='trytond.test_loader:Loader',
)
+6
View File
@@ -0,0 +1,6 @@
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
from .test_stock_supply_forecast import suite
__all__ = ['suite']
+17
View File
@@ -0,0 +1,17 @@
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
import unittest
import trytond.tests.test_tryton
from trytond.tests.test_tryton import ModuleTestCase
class StockSupplyForecastTestCase(ModuleTestCase):
'Test StockSupplyForecast module'
module = 'stock_supply_forecast'
def suite():
suite = trytond.tests.test_tryton.suite()
suite.addTests(unittest.TestLoader().loadTestsFromTestCase(
StockSupplyForecastTestCase))
return suite