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:17 +01:00
1 parent 9f69617262
commit 469322b606
1 file changed
+5 -16
+5 -16
View File
@@ -4,16 +4,17 @@ import unittest
import doctest
from decimal import Decimal
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 StockSplitTestCase(unittest.TestCase):
class StockSplitTestCase(ModuleTestCase):
'Test Stock Lot module'
module = 'stock_split'
def setUp(self):
trytond.tests.test_tryton.install_module('stock_split')
super(StockSplitTestCase, self).setUp()
self.uom = POOL.get('product.uom')
self.template = POOL.get('product.template')
self.product = POOL.get('product.product')
@@ -22,18 +23,6 @@ class StockSplitTestCase(unittest.TestCase):
self.user = POOL.get('res.user')
self.move = POOL.get('stock.move')
def test0005views(self):
'Test views'
test_view('stock_split')
def test0006depends(self):
'Test depends'
test_depends()
def test0007menu_actions(self):
'Test menu actions'
test_menu_action('stock_split')
def test0010split(self):
'Test split'
with Transaction().start(DB_NAME, USER, context=CONTEXT):