Skip to content
Snippets Groups Projects
  1. Sep 25, 2023
  2. Jun 17, 2021
    • Nicolas Lempereur's avatar
      [FIX] website_slides: can edit frontend enroll message · 6334c728
      Nicolas Lempereur authored
      
      The frontend enroll message was display as a `<small/>` tag, but it
      seems that lxml HTMLParser parse it wrongly, for example:
      
        html.tostring(html.fromstring('<small data-oe-model="test"><p></p></small>'))
      
      returns:
      
        '<div><small data-oe-model="test"></small><p></p></div>'
      
      So branding attributes like data-oe-model that are on small tag are not
      found on root node that has become a `div` tag after parsing => this causes
      a traceback error when saving a change in this part.
      
      Fix: use small as wrapper for `<div/>` tag that is treated correctly by
      HTMLParser (span is also treated correctly but div makes more sense
      here).
      
      opw-2573955
      
      closes odoo/odoo#72304
      
      Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
      6334c728
  3. Oct 23, 2020
  4. Aug 11, 2020
    • Patrick Hoste's avatar
      [REF] website_slides: improve course frontend page · 255bb3ab
      Patrick Hoste authored
      PURPOSE
      
      Improve onboarding and user experience and course frontend
      
      SPECIFICATIONS
      
      Overall improvements and onboarding :
        * new and improved default images for both course types;
        * preview / free preview badge update;
        * copy writing and spacing update;
        * allow to specifically choose a slide to promote. Display promoted slide is
          not optional anymore as configured in backend;
        * display a sample of lessons if no lesson in a course;
      
      LINKS
      
      Task ID-2241513
      PR #55698
      255bb3ab
    • Patrick Hoste's avatar
      [IMP] portal_rating: allow to tweak popup composer button display · 414329dc
      Patrick Hoste authored
      PURPOSE
      
      Change the display of the button to open the composer from btn-primary to
      btn-link.
      
      SPECIFICATIONS
      
      In order to ease integration of popup composer rating widget, let us allow
      to customize classes given to the button triggering it. In slides we want
      specifically it to be a link, not a button.
      
      LINKS
      
      Task ID-2241513
      PR #55698
      414329dc
  5. Jun 08, 2020
    • Patrick Hoste's avatar
      [IMP] website_slides: add possibility to request access to private course · 78637439
      Patrick Hoste authored
      PURPOSE
      
      Before this commit, a user could not contact a course responsible to ask him
      to join. With this commit he is be able to do it.
      
      SPECIFICATIONS
      
      Change the message 'Contact website administrator' to 'Contact Responsible'.
      
      Add the name of the course responsible in the course description panel. When
      clicking on its name it opens a modal to request access to the course. It
      creates an activity linked to the customer and assigned to the responsible.
      
      When hovering the 'You're enrolled' button the fa-check icon changes to a
      fa-times icon to show that you can unsubscribe when clicking.
      
      LINKS
      
      Task ID : 2127364
      PR : #40708
      78637439
    • Patrick Hoste's avatar
      [FIX] website_slides: changes enroll_msg default value · ad8c53ac
      Patrick Hoste authored
      SPECIFICATION
      
      Changes enroll_msg default value to 'Contact Responsible' instead
      of testing if it was empty or not. Since the FieldHtml widget sets
      the default value to '<p><br></p>' it was never empty.
      
      LINKS
      
      Task ID : 2127364
      PR : #40708
      ad8c53ac
  6. Mar 26, 2020
    • qmo-odoo's avatar
      [FIX] website_slides: fix slide reordering in frontend · 12c6d77e
      qmo-odoo authored
      This commit fixes the reordering of slides on upload or drag and drop
      in frontend. This issue was due to the fact that in a previous commit
      (c4eba6f5) uncategorized slides were moved to the bottom of the list,
      which broke the reordering after drag and drop.
      
      Indeed we use the dom order itself to reorder the slides with a simple rpc
      call to dataset/resequence. Instead we revert part of the previous fix
      to display uncategorized slides at the top. It allows to be coherent with
      resequence and with backend behavior that displays uncategorized at the
      top of the list.
      
      Another issue was that, on slide upload, in the controller, we used
      the category_id on the slide (which seems to not always be correct at
      this stage) instead of the one given by the javascript. This caused the slide
      to not be uploaded in the right section.
      
      This commit also adds some margin to the categories in frontend for training
      courses. Otherwise uncategorized slides are too close to the first category.
      
      Task ID 2090927
      
      X-original-commit: 7bd042d6e20c44558b90641409a6e3f8fa8000ed
      12c6d77e
  7. Mar 12, 2020
    • Florent Lejoly's avatar
      [IMP] website_[sale_]slides: allow users to take the slide quiz before joining the course · 660e1054
      Florent Lejoly authored
      
      PURPOSE
      
      When previewing a slide of type 'quiz', users are tempted to answer the
      questions even if they are not member of the course yet.
      
      This commit will allow users to answer the quiz without being a member of the
      course, and offer a smart redirection to join / buy based on the enroll type
      of the channel.
      
      SPECIFICATIONS
      
      We introduce a "CourseJoinWidget" that will handle the display and the behavior
      of the "join" button based on the user (public or not) and the enroll type
      (public course or based on a payment).
      
      When the user answers questions and he's not a member yet, we store the answers
      temporarily in the session object.
      When he comes back on the quiz page after having completed his membership, we
      fill in the quiz based on his previously entered answers and clean the session.
      
      LINKS
      
      Task 2045571
      PR #41972
      
      Co-authored-by: default avatarFlorent Lejolyn <fle@odoo.com>
      Co-authored-by: default avatarAurélien Warnon <awa@odoo.com>
      660e1054
  8. Mar 05, 2020
    • Tiffany Chang (tic)'s avatar
      [IMP] website_slides: Add color to course tags · 4bc66ffc
      Tiffany Chang (tic) authored
      This commit allows assignment and visibility of colors to course tags.
      In order to reuse existing code, the colors offered are the same colors
      used for Kanban tags.
      
      Visibility of these tag colors has been added to:
      - slide channel form view
      - individual course website
      - courses (not-filtered) website
      - user profile "about" page
      
      Note that visibility was purposely not added to:
      - Kanban view for courses since "no color" assigned tags are not shown in
        the kanban view by pre-existing design.
      - Filtered courses website since selected tag filters are already
        color highlighted to make selected tag filter(s) more obvious.
      
      Supports Task: 2128166
      PR #44365
      Upgrade PR: odoo/upgrade#862
      4bc66ffc
    • Tiffany Chang (tic)'s avatar
      [IMP] website_slides: Add course tags creation to frontend · 27005ebd
      Tiffany Chang (tic) authored
      This commit makes it possible for course tags to be added via the
      frontend. To support this, course tags were also made viewable in a
      specific course's website since previously these tags were only visible
      in the courses frontpage (i.e. within the course cards). "Add Tag" is
      placed after course page's tags. Note that due to the ability to make new
      tags within this "Add Tag" modal restricts addition to only 1 tag at a
      time since new tags require a "Tap Group" to be assigned and handling a
      mix of new/existing tags would get confusing and complicated.
      
      Supports Task: 2128166
      PR #44365
      27005ebd
  9. Feb 12, 2020
    • Jérémy Hennecart's avatar
      [IMP] website_slides: add customize button to display/hide the promoted slide · 9d94c1db
      Jérémy Hennecart authored
      There is now a button in the Customize tab which can be used to choose to display or hide
      the promoted slide of a course.
      
      task-2161391
      9d94c1db
    • Jérémy Hennecart's avatar
      [IMP] website_slides: improve the ui on a course (documentation) · c9ace271
      Jérémy Hennecart authored
      Before, uncategorized slides  weren't display correctly on the slide_channel. It was impossible
      to view all the slides if there were more than 4 slides uncategorized because the "View all" link wasn't
      display.
      
      Now, when there is no section/category on a course, it displays the last 4 slides with the "View all" link
      which allows to be redirected to the uncategorized category (category_id=-1). This request displays all the
      uncategorized slides with a pager if the limit of 12 slides per page is exceeded.
      If there is at least one category created, all uncategorized slides are displayed under a section "Uncategorized".
      
      Additionaly, there is a new button which allows to create a category directly on the course page to allow the user to
      organize is course more effectively.
      
      task-2161391
      c9ace271
  10. Feb 11, 2020
  11. Jan 16, 2020
  12. Jan 02, 2020
    • Patrick Hoste's avatar
      [IMP] website_sale_slides: add buy button to documentation courses · 40d2f95a
      Patrick Hoste authored
      
      Currently if slides officers or managers define documentation courses as
      on payment there is no easy way for customers to buy it.
      
      In this commit we add a button on the frontend to allow the end user to buy
      a documentation course like a training course. This button is displayed
      only for on payment documentation courses, leaving other documentation courses
      displayed untouched.
      
      Task ID : 2125086
      PR : odoo/odoo#40679
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      40d2f95a
  13. Dec 12, 2019
    • mcm-odoo's avatar
      [REF] website_slides: define specific eLearning user groups · 90bf317c
      mcm-odoo authored
      
      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: default avatarThibault Delavallee (tde) <tde@openerp.com>
      90bf317c
  14. Dec 09, 2019
  15. Dec 02, 2019
    • Thibault Delavallée's avatar
      [MOV] website_rating: move to portal_rating · 9e067788
      Thibault Delavallée authored
      PURPOSE
      
      Clean posting process and improve mail.message definition and comprehension.
      Move as much possible content from website_* modules to portal_* modules
      to ease their use in customer portal
      
      SPECIFICATIONS
      
      Now that publish feature is replaced by internal directly in mail and portal
      rating portal inclusion can be done safely in a portal_ratign module instead
      of website_rating. It allows to remove the dependency and give the rating
      feature of customer chatter directly in portal applications.
      
      LINKS
      
      Task ID 2071556
      PR #38692
      9e067788
  16. Nov 29, 2019
    • Hoste Patrick's avatar
      [IMP] website_slides: allow to create and update quizzes directly in frontend · ec9e389f
      Hoste Patrick authored
      
      Purpose is to ease designing your courses by allowing to create and update
      slide quiz directly in frontend, within the slide display.
      
      With this commit you are able to
      
        * add a quiz to a slide or add a question to an existing quiz;
        * edit an existing question from a quiz:
      
         * change the title of the Question;
         * add, remove or update answers;
         * change the right answer;
         * delete an existing question;
         * reorder the questions from a quiz;
         * reset the quiz for the current user if he is a website designer, allowing
           to test the quiz and its answers;
      
      New frontend widgets are introduced allowing to manipulate quiz. Slide page
      now supports a readonly / taking quiz mode and an edit mode for quizzes
      used notably for website designers / course maintainers.
      
      Task ID : 1999636
      PR : #35326
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      ec9e389f
  17. Nov 28, 2019
  18. Nov 20, 2019
    • laa's avatar
      [IMP] website_slides: indicate new content on courses to users · 92cc770c
      laa authored
      
      Purpose of this commit is to help users knowing there is new content in a
      course by adding a visual insight. It is done through a new content arrow
      displayed in courses homepage.
      
      Regarding the file "website_slides_templates_homepage.xml", the choice to
      incorporate the t-call attribute into a 't' balise was necessary to display
      the customize option (part front) associated with the model course_card.
      
      Side dish usability improvements raised during development
      
        * display completed courses as last instead of first in "my courses";
        * do not show promote strategy field for training courses as it has no
          use, only for documentation courses;
      
      TASK ID 2025186
      Closes PR #36703
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      92cc770c
  19. Oct 23, 2019
    • mcm-odoo's avatar
      [IMP] website_slides: add progressbar and completed tag · 42a24e41
      mcm-odoo authored
      
      - Teacher can now see the progress of his students on the attendees' list.
      
      - The completion of a course was recomputed even if the course is completed
        now it's fixed to 100 when completed.
      
      - Added a progressbar in course page in front-end to allow the user to see
        it's progression. When completed, the tag completed is displayed instead of
        the progressbar.
      
      - On slide page in front-end(normal view or fullscreen) when a course is
        completed, display the tag completed instead of the progressbar.
      
      - Removed completed state on course "Taking care of Trees" for portal user
        because it was not the case.
      
      task-2049689
      
      closes odoo/odoo#36608
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      42a24e41
  20. Oct 15, 2019
    • David Beguin's avatar
      [REF] website_slides : refactor share_modal to use same template(s) in all case · bb358113
      David Beguin authored
      This commit prepares the next one. It creates generic main and sub templates
      for slide share modal.
      
      In order to be usable for all cases, header and body sub template have been added.
      Also and in the same purpose, as the website url can be another url
      than the record to share (or if the record doesn't have website_url), this website_url
      can be specified separately from the record. Otherwise, the standard behaviour is to
      use the record.website_url.
      
      Task ID: 1950396
      PR #31776
      bb358113
  21. Oct 02, 2019
    • Romain Derie's avatar
      [IMP] website, website_*: improve edit in backend feature · 9b38bcec
      Romain Derie authored
      *base, website_blog, website_event, website_forum, website_slides
      
      With this commit:
      1. It is now possible to add the 'Edit in backend' entry in the frontend navbar
         for any desired model, not only the ones which have the published mixin.
         It will simply redirect to the main_object form view.
         This commit add it to Forum and Blog.
      2. When clicking on 'Edit in backend', it is now possible to land on another
         module than Website.
         That's especially useful for events and slides which are not directly
         related to the website module as they have their own module.
      3. Remove the custom Edit in backend from the forum homepage (fa-cog).
         Opportunity was also taken to remove the 'edit welcome message'.
         It will now be editable through the editor (welcome message will appear in
         edit mode). Thus we got rid of the custom edit welcome message controller
         and views.
      
      Closes #36325
      9b38bcec
  22. Sep 25, 2019
    • laa's avatar
      [FIX] eLearning, forum : tab visibility · 69ea10d2
      laa authored
      
      From Website (Frontend) --> From the Courses --> From a course (with settings course : Course type = "Documentation" & Forum mentioned):
            The tab for the forum isn't there
      
      From Website (Frontend) --> From the Courses --> From a course (with settings course : Course type = "Documentation" &  "Allow rating on Course" disabled):
            The tab for the review is always there
      
      From Website (Frontend) --> From the Forum --> From a course (with settings course : Course type = "Documentation" & "Allow rating on Course" activivated):
           Click the tab for the review, the returned view is the course tab and not the review tab
      
      From Website (Frontend) --> From the Forum  --> From a course (with settings course : "Allow rating on Course" disabled):
           The tab for the review is always there
      
      closes odoo/odoo#37436
      
      Task-id:  2074030
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      69ea10d2
  23. Sep 24, 2019
  24. Sep 13, 2019
    • Thibault Delavallée's avatar
      [FIX] website_{slides, profile}: fix display of not square user image · 98f847be
      Thibault Delavallée authored
      When having not square images for user avatar several issues appear
      
        * website_slides: heroes of the week banner is broken as circles are not
          circles anymore. They look more like UFOs or funny snowmen;
        * website_slides: my user status / leaderboard / achievements card display
          is broken as image may take much more width than planned;
        * website_slides: channel page view displays user avatar when having joined
          it, and it is broken;
        * website_profile: user avatars in top 3 of users karma ranking is broken.
      
      In this commit we apply strict rules on width / height combined to an object
      fit in order to always have a bioutifoul displayed circled image.
      
      Task 2065425 (avatar ratio badly displayed)
      PR #36756
      98f847be
  25. Sep 04, 2019
    • Thibault Delavallée's avatar
      [IMP] website_{rating, slides}: allow to manage attachments when updating reviews · a08845d2
      Thibault Delavallée authored
      PURPOSE
      
      Allow to manage attachments when updating a frontend review.
      
      SPECIFICATIONS
      
      Currently when posting a review in eLearning or eCommerce one can attach
      files to its review thanks for portal composer. Rating popup composer allow
      to update its comment and rating. However this edit mode has two limitations.
      It does not display attachments previously added and does not allow to add
      attachments.
      
      This commit fixes that by
      
        * giving attachment values to the composer, allowing its display by the
          composer display at startup;
        * allowing to give new attachments and properly handle them in slides
          route;
      
      Uploaded and validated attachments cannot be removed by users. Indeed
      message with attachments has probably already be sent to people and removing
      attachments would lead to information loss.
      
      LINKS
      
      Task 2066600 (manage attachments)
      Task 2058595 (eLearning v13 testing)
      a08845d2
  26. Sep 03, 2019
    • Michaël Mattiello's avatar
      [FIX] website_slides: fixes some display issues in eLearning frontend · 37bf69dd
      Michaël Mattiello authored
      Fix some display issues in eLearning
      
        * fix the share button in documentation. It was not working as model was
          not correctly placed;
        * fix top3 users banners broken in mobile;
        * fix left menu of fullscreen being behind content on mobile (image, video);
        * removed upload button in training channel aside as there are already
          buttons available for that purpose;
      
      Task 2049640 (website slides back2basics and fiximp)
      37bf69dd
    • laa's avatar
      [FIX] website_slides: correctly set sequence of newly added content · c4eba6f5
      laa authored
      
      Purpose of this commit is to add new content at last position in frontend.
      Indeed backend uses last position in embedded list view, frontend should
      do the same. Moreover when having a lot of content, having everything at
      the bottom of the screen at the same position of Add content / section
      buttons makes sens.
      
      Specifications
      
        * when adding a new category: add it as last category;
        * when adding a new slide in a category: add it as last slide of the
          category;
      
      Specific case of slide without category
      
        * when adding a new slide without category: add it as last slide of the
          channel (display it as last) but keep it on top in backend view
          (display as first);
      
      Improve content list display in frontend of eLearning
      
        * contents without section are now at the bottom;
        * fixed alignment of buttons icon (Add Content and Add Section)
        * fixed broken design because of title too long
      
      Task 2049640 (website slides back2basics and fiximp)
      Task 2061672 (new content bug report)
      
      Co-Authored-By: default avatarMichaël Mattiello <mcm@odoo.com>
      Co-Authored-By: default avatarAlexis Lacroix <laa@odoo.com>
      c4eba6f5
  27. Aug 28, 2019
    • Lucas Lefèvre's avatar
      [FIX] website_slides: allow portal users to rate · a9462adf
      Lucas Lefèvre authored
      PURPOSE
      
      Test frontend and UI tools of eLearning.
      
      SPECIFICATIONS
      
      Portal users cannot post reviews as they have no write right on channels.
      When trying to post a review on a channel this leads to a 403.
      
      In this commit we correctly propagate channel access token to the composer
      in order to allow rating.
      
      LINKS
      
      Task ID 1937768
      a9462adf
  28. Aug 22, 2019
    • mcm-odoo's avatar
      [IMP] website_slides: add modal to (un)subscribe or leave a course · addaec12
      mcm-odoo authored
      - Before it was not possible to leave a course.
      - This commit adds a modal to give the members the possibility to leave
        the course and also subscribe or unsubscribe to get notified or not.
        + Display a warning message when leaving if field enroll value is "payment".
      
      task-1985511
      addaec12
  29. Aug 08, 2019
    • qmo-odoo's avatar
      [REF] website_slides: replace slide.category by slide with is_category flag · b180c66a
      qmo-odoo authored
      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
      b180c66a
  30. Aug 05, 2019
  31. Aug 13, 2019
  32. Aug 12, 2019
    • mcm-odoo's avatar
      [IMP] website_slides: add button to install Surveys application in Slide Upload modal · 2ab0bd32
      mcm-odoo authored
      PURPOSE
      
      Ease discovering of eLearning features by allowing to install surveys
      directly from frontend in order to allow certification.
      
      SPECIFICATIONS
      
      Add a button in Upload a document to install Surveys. This button only
      appears if surveys is not installed.
      
      When button is clicked, ask for confirmation before installing survey.
      
      LImitate this feature to group system: system people should see the button
      and use standard ACLS about module installation.
      
      LINK
      
      Task ID 2026846
      2ab0bd32
    • Aurélien Warnon's avatar
      [REF] website_slides: improve duration computation of a slide/course · 5269d8c2
      Aurélien Warnon authored
      The completion time of a slide now has default values for slides of type
      
        * video (duration of the YouTube video);
        * PDF (number of pages * 5 minutes);
      
      This computation is done when uploading a slide in frontend or by an onchange
      in backend. Field can still be given / modified by elearning people as
      result may not be reliable (pdf parsing is not accurate, and/or you may
      estimate time differently from strict page-based computation).
      
      The course will sum up all durations of its (active) slides. Display has been
      changed from "x minutes" to "x hours y minutes".
      
      Task ID 2007294
      5269d8c2
  33. Aug 02, 2019
    • Sébastien Theys's avatar
      [IMP] *: rename image fields · 58a2ffa2
      Sébastien Theys authored
      image_original => image_1920 (now resized to 1920)
      image_big => image_1024
      image_large => image_256
      image_medium => image_128
      image_small  => image_64
      image replaced by image_1920 (when writing) or by image_1024 (when displaying
      	what was previously the big size)
      
      + add new intermediate format:
      image_512
      
      PR: #34925
      58a2ffa2
  34. Jun 14, 2019
Loading