From 85d880d0319d4e5eabc33afabde47254f64e47a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 27 Jan 2015 18:13:04 +0100 Subject: [PATCH] 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 --- statement.xml | 14 ++++++++++++++ tests/test_account_statement.py | 20 +++----------------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/statement.xml b/statement.xml index f8609b83b0..9147f05ccf 100644 --- a/statement.xml +++ b/statement.xml @@ -164,6 +164,13 @@ this repository contains the full copyright notices and license terms. --> + + + + + + + @@ -189,6 +196,13 @@ this repository contains the full copyright notices and license terms. --> + + + + + + + diff --git a/tests/test_account_statement.py b/tests/test_account_statement.py index f1f762da88..551a3f3351 100644 --- a/tests/test_account_statement.py +++ b/tests/test_account_statement.py @@ -3,27 +3,13 @@ import unittest import doctest import trytond.tests.test_tryton -from trytond.tests.test_tryton import test_view, test_depends, test_menu_action +from trytond.tests.test_tryton import ModuleTestCase from trytond.tests.test_tryton import doctest_setup, doctest_teardown -class AccountStatementTestCase(unittest.TestCase): +class AccountStatementTestCase(ModuleTestCase): 'Test AccountStatement module' - - def setUp(self): - trytond.tests.test_tryton.install_module('account_statement') - - def test0005views(self): - 'Test views' - test_view('account_statement') - - def test0006depends(self): - 'Test depends' - test_depends() - - def test0007menu_actions(self): - 'Test menu actions' - test_menu_action('account_statement') + module = 'account_statement' def suite():