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:
+5
-16
@@ -4,34 +4,23 @@ import unittest
|
||||
import doctest
|
||||
|
||||
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 CompanyTestCase(unittest.TestCase):
|
||||
class CompanyTestCase(ModuleTestCase):
|
||||
'Test Company module'
|
||||
module = 'company'
|
||||
|
||||
def setUp(self):
|
||||
trytond.tests.test_tryton.install_module('company')
|
||||
super(CompanyTestCase, self).setUp()
|
||||
self.party = POOL.get('party.party')
|
||||
self.company = POOL.get('company.company')
|
||||
self.employee = POOL.get('company.employee')
|
||||
self.currency = POOL.get('currency.currency')
|
||||
self.user = POOL.get('res.user')
|
||||
|
||||
def test0005views(self):
|
||||
'Test views'
|
||||
test_view('company')
|
||||
|
||||
def test0006depends(self):
|
||||
'Test depends'
|
||||
test_depends()
|
||||
|
||||
def test0007menu_actions(self):
|
||||
'Test menu actions'
|
||||
test_menu_action('company')
|
||||
|
||||
def test0010company(self):
|
||||
'Create company'
|
||||
with Transaction().start(DB_NAME, USER,
|
||||
|
||||
Reference in New Issue
Block a user