mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[IMP] web_disable_export_group: Disable 'export all' button
This commit is contained in:
@@ -5,8 +5,28 @@ import odoo.tests
|
||||
|
||||
@odoo.tests.tagged("post_install", "-at_install")
|
||||
class TestTour(odoo.tests.HttpCase):
|
||||
def setUp(self):
|
||||
super().setUp()
|
||||
self.env["res.users"].create(
|
||||
{
|
||||
"name": "user_not_export",
|
||||
"login": "user_not_export",
|
||||
"password": "user_not_export",
|
||||
"groups_id": [
|
||||
(
|
||||
6,
|
||||
0,
|
||||
[
|
||||
self.env.ref("base.group_user").id,
|
||||
self.env.ref("base.group_system").id,
|
||||
],
|
||||
)
|
||||
],
|
||||
}
|
||||
)
|
||||
|
||||
def test_admin(self):
|
||||
self.start_tour("/web", "export_tour_admin", login="admin")
|
||||
|
||||
def test_demo(self):
|
||||
self.start_tour("/web", "export_tour_demo", login="demo")
|
||||
def test_user_not_export(self):
|
||||
self.start_tour("/web", "export_tour_demo", login="user_not_export")
|
||||
|
||||
Reference in New Issue
Block a user