mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[IMP] web_disable_export_group: Differenciate between the XLSX export and the standard export
This commit is contained in:
@@ -10,3 +10,20 @@ class TestTour(odoo.tests.HttpCase):
|
||||
|
||||
def test_demo(self):
|
||||
self.start_tour("/web", "export_tour_demo", login="demo")
|
||||
|
||||
def test_demo_xlsx(self):
|
||||
user = self.env.ref("base.user_demo")
|
||||
user.write(
|
||||
{
|
||||
"groups_id": [
|
||||
(
|
||||
4,
|
||||
self.env.ref(
|
||||
"web_disable_export_group.group_export_xlsx_data"
|
||||
).id,
|
||||
)
|
||||
]
|
||||
}
|
||||
)
|
||||
user.flush()
|
||||
self.start_tour("/web", "export_tour_demo_xlsx", login="demo")
|
||||
|
||||
Reference in New Issue
Block a user