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:10 +01:00
1 parent 331a74586c
commit 7ef8b9c0a4
1 file changed
+5 -16
+5 -16
View File
@@ -6,16 +6,17 @@ from decimal import Decimal
import datetime
from dateutil.relativedelta import relativedelta
import trytond.tests.test_tryton
from trytond.tests.test_tryton import POOL, DB_NAME, USER, CONTEXT, test_view,\
test_depends, test_menu_action
from trytond.tests.test_tryton import ModuleTestCase
from trytond.tests.test_tryton import POOL, DB_NAME, USER, CONTEXT
from trytond.transaction import Transaction
class StockForecastTestCase(unittest.TestCase):
class StockForecastTestCase(ModuleTestCase):
'Test StockForecast module'
module = 'stock_forecast'
def setUp(self):
trytond.tests.test_tryton.install_module('stock_forecast')
super(StockForecastTestCase, self).setUp()
self.category = POOL.get('product.category')
self.uom = POOL.get('product.uom')
self.template = POOL.get('product.template')
@@ -29,18 +30,6 @@ class StockForecastTestCase(unittest.TestCase):
self.forecast_complete = POOL.get('stock.forecast.complete',
type='wizard')
def test0005views(self):
'Test views'
test_view('stock_forecast')
def test0006depends(self):
'Test depends'
test_depends()
def test0007menu_actions(self):
'Test menu actions'
test_menu_action('stock_forecast')
def test0020distribute(self):
'Test distribute'
for values, result in (