Add test for access rights of menu and actions

issue4295
review12661002
This commit is contained in:
Nicolas Évrard
2015-01-02 16:08:02 +01:00
parent 3ef205ec3a
commit 2baf27e12b
2 changed files with 10 additions and 1 deletions
+5
View File
@@ -22,6 +22,11 @@ this repository contains the full copyright notices and license terms. -->
action="act_party_configuration_form"
id="menu_party_configuration"
sequence="0" icon="tryton-list"/>
<record model="ir.ui.menu-res.group"
id="menu_party_configuration_group_party_admin">
<field name="menu" ref="menu_party_configuration"/>
<field name="group" ref="group_party_admin"/>
</record>
<record model="ir.property" id="property_party_sequence">
<field name="field"
+5 -1
View File
@@ -3,7 +3,7 @@
import unittest
import trytond.tests.test_tryton
from trytond.tests.test_tryton import POOL, DB_NAME, USER, CONTEXT, test_view,\
test_depends
test_depends, test_menu_action
from trytond.transaction import Transaction
@@ -24,6 +24,10 @@ class PartyTestCase(unittest.TestCase):
'Test depends'
test_depends()
def test0007menu_actions(self):
'Test menu actions'
test_menu_action('party')
def test0010category(self):
'Create category'
with Transaction().start(DB_NAME, USER,