summaryrefslogtreecommitdiff
path: root/addons/website_slides/models/__init__.py
AgeCommit message (Collapse)Author
2020-04-22[IMP] website_slides: publish content when publishing slidePatrick Hoste
Purpose of this commit is to avoid de-synchronization where content could be unpublished whereas slide was published. Task ID 2239840 closes odoo/odoo#49908 X-original-commit: d0f4a3e85eab63e335766a823185fd6ada6e07b4 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-08-05[ADD] mass_mailing_slides: allow to mass mail course attendeesJérémy Hennecart
PURPOSE eLearning should have its own application in manager. Indeed this is becoming a big application and having it embedded inside Website application is not enough anymore. It should also hold updated and easy-to-use menus, navigation, actions and views in backend. SPECIFICATIONS Integrate a button on slide.channel form view allowing to perform a mass mailing on course attendees. Do a flow similar to event. Add menu entry in menu of slide.channel kanban card after invite * Mail Attendees (same as on the course card and depend of the setting) Add menu entry inside Settings * Settings: add an option to install module mass_mailing_slide LINKS Task 1978729 PR #35061 Co-Authored-By: Thibault Delavallée <tde@odoo.com> Co-Authored-By: Jérémy Hennecart <jeh@odoo.com>
2019-07-31[IMP] eLearning: adds course and certification stat button on partnerPatrick Hoste
Adds two stats button on res.partner form view : - The first one will show all the courses that the partner is following. - The second one will show all the certifications the partner has passed. When the partner is a company : - All the courses followed by all the partners are shown without duplicate. - All the certifications passed by all the partners are shown. PR : #34908 Task ID : 2034097 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-02-20[IMP] website_slides: perform some code linting and re-order frontend templatesThibault Delavallée
Purpose is to perform some linting in code. No functional change should occur with this commit, only some code move. Diff may appear huge but it is just because some files are split. This cleaning allow to better understand code and templates architecture now that eLearning feature has landed in Odoo Community. It will ease future additions, modifications and fixes. Containing : * [REF] make some internal slide-related methods private as they are not intended to be called by outside world; * [MOV] new channel invite wizard in wizard folder; * [MOV] split frontend templates in some files to better locate code. There is now files for homepage, course, lesson, embed and utils in addition to slide-related profile template; * [REM] dead (unused) templates; Commit linked to task ID 1941250 and PR #31272.
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-19[IMP] website_slides: Add elearning feature to slidesqmo-odoo
Purpose of this commit is to introduce a new way of displaying and managing slides in eLearning module. Its purpose is to give a better experience to users when going through a course. Notably a fullscreen mode allows to take lessons one by one without going out of the elearning display. Integration of all slide types eases taking the course step by step. Quiz are introduced in this commit. Those are an addition to slides with some question / answers (multiple choice). It allows customer to gain karma and improves gamification. Certifications are still done using the survey application. Quiz targets only small tests at the end of a given slide. A new widget is added to display and control slide display in fullscreen mode. Old display is still available for documentation channels or when going out of fullscreen mode, to see details on comments / review / statistics and have access to share options. This commit is linked to task ID 1902304 and PR #29876. It closes the main work on refactoring website slides into eLearning, with other tasks already merged in current community [1][2][3][4][5]. [1] Task ID 1940360 landed at b2149bc7a274217a0b96e587abd52093bd98e5e8: certification inclusion [2] Task ID 1936153 landed at 6c6179e57cede3d9889c33873740a7b1ddecda2e: homepage inclusion [3] Task ID 1937160 landed at 8b7605c9e5df4a700b0139d1781db24ae5d31626: selling courses [4] Task ID 1922159 and 1940516 landed at 5fa651cb013ac67d7ba592498c4cf2770dec2483 and 6a64c3ce821f080969e49e5e760e52ae9bfc26cc: new user profile and gamification of slides / forum [5] Task ID 1938643 landed at 77b5673a0dd220b3c28e88f8acbb5274b486c5bd: upload channel/slide
2019-02-14[IMP] website_slides : use website_profile page template and adds ↵David Beguin
website_slides specific information Adds slides ands slide.channels specific information (courses) into the website_profile template page. As there can be more than one slide.channel,the profile page shows everything linked to every slide.channel, except if the channel_id is given in url arguments. Adds the 'Go to eLearning' button in the 'new rank reached' mail to encourage the users to continue to be active on the eLearning platform as well, to gain more karma point and improve there rank. Task ID : 1922159 PR #30988
2019-02-11[IMP] website_slides: add invite wizard for 'invite' slide_channelAurélien Warnon
Purpose ======= Currently, the slide_channels having a visibility configured as 'invite' could only add members manually. This commit adds an 'Invite' button on top of the slide channel form that opens a wizard allowing to send emails to contacts and also make them members of the related slide channel.
2019-02-11[IMP] website_slides: add tags and tag groups on channelThibault Delavallée
Purpose is to be able to filter, search and categorize channels. Notably with eLearning in mind there will be more channels as a channel will also be used to hold lessons. For that purpose we add a model of tag linked to channels. Those tags are organized by groups in order to be able to display them using a menu or a small hierarchy of tags. Displaying a tag group as a specific navigation element is controlled by a specific field. Those models will be used to display a new and improved home page for channels / courses. This commit is linked to task ID 1936153 and PR #30985.
2019-02-07[IMP] website_slides: add dependency on website profileThibault Delavallée
Purpose is to prepare the use of gamification tools in slides. In this commit we add the dependency on website_profile (gamification front-end) in slides and add the slides category on challenges. Partial commit linked to eLearning project. Main specifications related to gamification and user profile can be found on task 1922159 (PR #30514). Main specifications related to eLearning can be found on task 1902304 (PR #29876). Co-Authored-By: David Beguin <dbe@odoo.com> Co-Authored-By: Thibault Delavallee <tde@odoo.com>
2018-11-19[MOV] slides: Rename and split files according to their underlying modelsqmo-odoo
Purpose of this merge is to polish a bit this module before turning it into "courses" (see task #1902304 for more details on this) Contains * split python model into separate main files to ease models understanding; * split views into separate main files to ease views finding; * rename files according to guidelines; * merge templates in the same file to have all available at hand; * move assets in their own file in order to remove noise from templates; * Split javascript widgets into their own separate files No functional behavior change should occur with this commit. Only move has been performed. Note that we might lose part of the history as splitting files creates a new history for new files. Task: #1909281 Closes: #28679
2018-08-13[IMP] website_[blog|event|forum|sale|slide]: make website specificJeremy Kersten
Set up env & tools for module website multiwebsite (blog, event, sale..) website_id in modelConverter and ir_rule add _compute_domain_keys to have a different cache per website or rules would not be correctly website_dependant eg: blog 1 on website 1, blog 2 on website 2 access blog 1 from website 1 => can access -> normal access blog 1 from website 2 => can access -> should crash because (ir rule) split mixing website.published.mixin and website.published.multi.mixin to have website_id only on last one. multi mixing will: - override website_published compute to take current_website into account (not in backend) - force website when clicking on published in backend - website blog, website_sale, website_event, website_forum, website_slides are now multi website Co-authored-by: Derie Romain <rde@odoo.com> Co-authored-by: Kersten Jérémy <jke@odoo.com>
2017-09-01[IMP] res_config: Update file names, xmlids, class names according to guidelinesYannick Tivisse
Now that we only have one model (res.config.settings). Uniformize everything according to the guidelines.
2017-06-19[MOV] *: Reorganize configuration files according to guidelinesYannick Tivisse
2017-04-28[FIX] Various P3-related import changesxmo-odoo
* LDAP import: python-ldap is not python3-compatible, pyldap is Warning: only supported from debian Stretch (current testing)? https://packages.debian.org/search?searchon=names&keywords=pyldap * implicitly relative imports * imports of moved or removed stdlib modules issue #8530
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.