summaryrefslogtreecommitdiff
path: root/addons/website_slides/tests/test_slide_utils.py
diff options
context:
space:
mode:
authormcm-odoo <mcm@odoo.com>2019-10-28 09:58:28 +0000
committerThibault Delavallée <tde@odoo.com>2019-12-12 14:12:51 +0000
commit90bf317c013323ed9f6195d61440e2bd0e09ac2c (patch)
tree91c6e68006b333fbfd241659b845740ea4ff598b /addons/website_slides/tests/test_slide_utils.py
parenta0fc349f045c5d92683e68c899031d3350f7d642 (diff)
[REF] website_slides: define specific eLearning user groups
PURPOSE Have user groups specific to eLearning to separate them from generic website editors. Indeed this is a specific work area and require more than pure design skills. SPECIFICATIONS Two user groups are added in this commit * group_website_slides_officer + can read any course/slide + can create a course (will be responsible) + can write on its courses + can upload slides to the courses he is responsible + can publish slides to the courses he is responsible - cannot unlink courses/slides (you should archive them) * implies group_website_publisher in order to see the top navbar in frontend with the publish toggle button and the new content button; * group_website_slides_manager: has full rights + can read any course/slide; + can create a course; + can add slide to any courses; + can publish any courses/slides; + can unlink any courses/slides; + has access to reporting menu entries; Rights for other groups are untouched for courses / slides. As a reminder we still support responsibles being outside of eLearning groups, for example if an employee is a teacher that handles a course: * people in upload_group_ids of a channel can upload slides, even if they don't belong to any eLearning group; * people responsible of a course can upload and publish slides even if they don't belong to any eLearning group (done through controller as they don't have real rights on underlying models); We choose to keep the survey rights separated from eLearning ones. Indeed it is easy in odoo to update the imply_ids field of groups if necessary to link survey / eLearning groups; default user template can also be updated easily. Standard Odoo should therefore correctly separate those groups. The only specific rights is that eLearning officers can read all surveys, allowing to choose them for certification-based courses. LINKS Task ID 2062462 PR #39485 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'addons/website_slides/tests/test_slide_utils.py')
-rw-r--r--addons/website_slides/tests/test_slide_utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/website_slides/tests/test_slide_utils.py b/addons/website_slides/tests/test_slide_utils.py
index d934d2d5b13..158d59e94a3 100644
--- a/addons/website_slides/tests/test_slide_utils.py
+++ b/addons/website_slides/tests/test_slide_utils.py
@@ -7,7 +7,7 @@ from odoo.tests.common import users
class TestSequencing(slides_common.SlidesCase):
- @users('user_publisher')
+ @users('user_officer')
def test_category_update(self):
self.assertEqual(self.channel.slide_category_ids, self.category)
self.assertEqual(self.channel.slide_content_ids, self.slide | self.slide_2 | self.slide_3)
@@ -53,7 +53,7 @@ class TestSequencing(slides_common.SlidesCase):
self.assertEqual(new_slide.category_id, self.env['slide.slide'])
self.assertEqual(self.slide_3.category_id, self.env['slide.slide'])
- @users('user_publisher')
+ @users('user_officer')
def test_resequence(self):
self.category.write({'sequence': 4})
self.slide_2.write({'sequence': 8})