summaryrefslogtreecommitdiff
path: root/addons/website_slides/security/website_slides_security.xml
AgeCommit message (Collapse)Author
2020-03-20[IMP] *: declare ir.rule in noupdateVictor Feyens
ir.rule are default values but can be customized based on the company's policy and needs. This is typically a record that is in noupdate as should be customization-friendly.
2020-03-20[IMP] *: remove global field definition in ir rules xmlVictor Feyens
It is a computed field, there is no need to manually set its value.
2020-03-18[FIX] slides: add mising rights for eLearning managersThibault Delavallée
Full rights were not granted on technical models for managers leading to issues notably when archiving. Followup of 90bf317c013323ed9f6195d61440e2bd0e09ac2c Task ID 2219806 closes odoo/odoo#47911 X-original-commit: c78553340008c1094bfc2c4dd554c5ad5f368fe9 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-12-24[IMP] website_slides: allow to download slide content and additional resourcesPatrick Hoste
PURPOSE Currently eLearning lacks feature of having downloadable resources on lessons. Indeed for example teachers would like to attach zip files or other resources linked to a given lesson. SPECIFICATIONS You can now allow the user to download the slide content for pdf and image slides. A new icon will be visible next to the fullscreen button on the pdf viewer. Course maintainers can also add additional resources to a slide which will be available to download for the user. Task ID 2066741 PR #39890 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-12-12[REF] website_slides: define specific eLearning user groupsmcm-odoo
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>
2019-08-08[REF] website_slides: replace slide.category by slide with is_category flagqmo-odoo
PURPOSE Like already done for sale order, invoice of survey, purpose of this commit is to remove category model and replace by a flagged line (slide). It allows to easily reorder slides in an embedded list view. SPECIFICATIONS Instead of having a fully fledged slide.category model, slide.slide will serve that purpose with a is_category flag. This will allow to drag and drop slides and sections in the channel form view. This change had an impact on the way slides were added/sorted on the front-end. In fact, whenever a slide is added from the front-end, a resequencing of all the slides in the course has to be triggered. Category of a slide is now a computed field based on the sequence. Order of slides is based on sequence, with categories splitting the slide list based on is_category flag. In this commit tests are added. Some cleaning in tests is also performed to speedup a bit tests (savepointcase) and some cleaning / renaming to ease their understanding. Future commit will add JS necessary to manage slides in the section list view. LINKS TaskID: 1978731 PR: #33255
2019-02-19[REF] website_slides: improve and make access options clearerThibault Delavallée
Purpose is to ensure more advanced use cases are still supported in new elearning platform in addition to more public use cases. Fields controlling access are now * enroll: who can enroll on course: public (everyone, simply click on join button), invite (added by already members) and payment (in bridge with website_sale, if SO with product is confirmed); * enroll_group_ids: automatically add members of those groups to the channel to ease having groups for a given subset of users; * visibility: who can see a channel and its slides: public (everyone, it means channel is visible on website for example), members (hidden for non members) * website_published on channels and slides; non publishers cannot see what is not published, whatever other parameters; * upload_group_ids: who can upload on a channel; * download_security on a slide is completely removed as it makes no sense for most slide types; To ensure a better user experience responsible of a channel is added in its members. People uploading a slide are now also allowed to read it to avoid having inconsistency behavior between upload_group_ids and access rules. Some tests are added. This commit is linked to task ID 1942836 and PR #31239. Co-Authored-By: Aurélien Warnon <awa@odoo.com> Co-Authored-By: Thibault Delavallée <tde@odoo.com>
2019-02-08[REM] website_slides: remove the 'state' field of slide.channel.partnerAurélien Warnon
Purpose ======= The 'state' field for a member of a channel did not imply anything functionally so we decided to remove it. It allows to remove an unnecessary computed fields. ACLs are updated accordingly. If needed, we will soon be able to check partner_ids that have ordered but not paid a channel / course product by searching the related 'sale.order' model for such products.
2019-02-07[IMP] website_slides: clean ACLs and refactor access optionsThibault Delavallée
Purpose of this commit is to clean access rights on slide models and give less access to public / portal / internal users. Website publishers and editors have rights to edit slides content and manage channels. Another purpose is to clean and refactor access options on channels and slides. Access to a given slide depends on the current user being a member of the slide channel. A channel can be either public (joined easily) or on invitation only (manual addition of members). Slide can be flagged as preview, meaning they are accessible without any concern about channel membership. It is used as teasing or free promotion of a channel. Publish flag is orthogonal. Non published slides are not visible to everyone except website content editor. It allows to work and improve slides without displaying them to members or public people. Technically a new model is added to model membership on channels. It is a decorated m2m between channels and partners; on this m2m the state of membership is added. In a near future additional information will be stored on this model, like completion of channel or certification information. Other technical changes implied by this commit * visibility is simplified to either public or invite; * can_see and can_see_full are removed, as well as concept of 'partial' display of slides; * group_ids related to private access is removed; * a computed / searchable field is added to be able to efficiently find and search active members of a channel; This commit is linked to task ID 1937411 and PR #30847.
2017-03-06[MERGE] forward port branch saas-11 up to 503227838d1Christophe Simonis
2017-03-02[FIX] website_slides: Unpublished slides not visibleGoffin Simon
The rules "Channel: public: published only" and "Slide: public: published only" must also be applied on portal user. The portal user doesnt have to be allowed to create or write on slide.slide records(introduced by 51be5bb). opw:708499
2016-08-10[REF] various: rename openerp node to odoo in xml filesThibault Delavallée
2015-01-16[ADD] website_slides: new website module to handle presentations, documents,Mantavya Gajjar
videos, infographics. Some kind of slideshare clone, to summarize. Featuring : - channel management: classify slides (presentations, videos, documents, ...) and tune their access rights for visibility, uploading and downloading - full branding new shiny website module ! - automatic fetch of youtube and google docs information based on URL - statistics: views, likes, interfaced with messaging, ... - embed mechanism to embed slides in other websites Courtesy of RD India, notably Mantavya Gajjar, Ravi Gadhia, Vijay Patel, Pariket Trivedi Courtesy of Use Merge Team, notably Jerome Maes and Richard Mathot Let us not forget our usability testing teams that tested it quite a lot of time. Special thanks to Martin Trigaux that did nothing.