summaryrefslogtreecommitdiff
path: root/addons/test_xlsx_export
diff options
context:
space:
mode:
authorMitali Patel <mpa@odoo.com>2020-02-12 14:09:12 +0000
committerXavier Morel <xmo@odoo.com>2020-04-01 13:07:50 +0000
commitc248594ee5255b232e42438783b9061d235153cb (patch)
treea436fcd46d9b2d55356cc1d2778f1c2b5971881a /addons/test_xlsx_export
parent271112980941825a76af6488a19e12031c771b99 (diff)
[IMP] base: allow restricting / removing exports right
Add a new group allowing administrators to remove the ability for users to bulk-export data from the database. It's pretty minor as technically the user can still access the underlying object through the basic methods but it's still a bit of a roadblock. Users can export by default. Task 2170900 closes odoo/odoo#45400 Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
Diffstat (limited to 'addons/test_xlsx_export')
-rw-r--r--addons/test_xlsx_export/tests/test_export.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/test_xlsx_export/tests/test_export.py b/addons/test_xlsx_export/tests/test_export.py
index 7a2e50a80e3..9ba0960be5a 100644
--- a/addons/test_xlsx_export/tests/test_export.py
+++ b/addons/test_xlsx_export/tests/test_export.py
@@ -22,7 +22,7 @@ class XlsxCreatorCase(common.HttpCase):
super().setUp()
self.model = self.env[self.model_name]
- mail_new_test_user(self.env, login='fof', password='123456789')
+ u = mail_new_test_user(self.env, login='fof', password='123456789', groups='base.group_user,base.group_allow_export')
self.authenticate('fof', '123456789')
self.worksheet = {} # mock worksheet