Skip to content
Snippets Groups Projects
  1. Mar 15, 2019
    • Jérome Maes's avatar
      [FIX] website_slides: prevent to mark a certification as done · 954e8ca6
      Jérome Maes authored
      When a certification slide is display in no fullscreen
      mode, the done button is clickable. Same applies to quiz
      slide.
      This commit prevents user to manually mark a slide as done
      for slide type that requires an other action (submit answer,
      pass survey, ...).
      
      Task-1941250
      954e8ca6
    • Jérome Maes's avatar
      [FIX] website_slides: auto set done successfull quizz · 32c5632a
      Jérome Maes authored
      For now, in no fullscreen mode, if the quiz is succeed, the
      user progress is not updated because the quiz is not set
      to done.
      This commit implements this call to mark slide as done and
      green the check bullet.
      We decided to unify the submit RPC call with the done one,
      so a quiz (or a slide with questions) can only be done when
      submitting answers. As consequence, we need to prevent some
      slide type to use the /set_completed route (quiz and certif).
      
      Task-1941250
      32c5632a
    • Aurélien Warnon's avatar
      [FIX] website_slides: avoid access error when submitting quiz · 55f61d95
      Aurélien Warnon authored
      Purpose
      =======
      
      The quiz_submit method and the action to set the quiz done both use
      the slide_partner relation that has to be accessed in sudo mode.
      
      Task-1941250
      55f61d95
    • sri-odoo's avatar
      [IMP] website_slides: embedded player restyling · 54261c4e
      sri-odoo authored
      The style and DOM structure of the embeded player (used
      to display PDF file) is old, and it needed a little refresh
      to be adapt to bootstrap4 and modern styling.
      
      Task-1941250
      54261c4e
    • sri-odoo's avatar
      [FIX] website_slides: styling fullscreen mode · 69fb136a
      sri-odoo authored
      Since the fullscreen widget has been revamped, it needed
      to be pixel perfect. This commit cleans the CSS and DOM
      structure in order to optimize and sublime it.
      
      Task-1941250
      69fb136a
    • Robot Odoo's avatar
      [MERGE][IMP] website_slides, website_*: email validation, comment restrictions... · 77fa2d69
      Robot Odoo authored
      [MERGE][IMP] website_slides, website_*: email validation, comment restrictions with karma and search user profile
      
      This merge is improving various points linked to eLearning.
      Impacted modules: website_profile, website_forum, website_rating and website_slides
      
      - Move validation email from website_forum to website_profile to use the feature in both Forum and elearning. The purpose is to give first karma points to allow users to comment, vote, ... on slides.
      - Add search bar in 'all users' page. To do so, we needed to introduced the `karma_position` field.
      - Restrict comment, review and vote based on user's karma in eLearning (minimum karam required to review/vote/comment, like in forum). This feature required to add 3 stored fields, with the benediction of chs !
      - Fix channel completion computation and linked karma gain. Also provide some test on karma gain.
      
      See sub commits for more details.
      
      Task-1943788
      
      closes odoo/odoo#31321
      
      Signed-off-by: default avatarJérome Maes (jem) <jem@openerp.com>
      Unverified
      77fa2d69
    • David Beguin's avatar
      [IMP] website_slides : improve get slide access computation · 5798ca28
      David Beguin authored
      As slides are returned in sudo to the template, the user rights were
      checked via a can_access variable set in the template directly.
      In order to disable the vote for user that cannot get access to the course
      all the checks are now done in backend (also to avoid to get access to slides
      in sudo mode with rpc calls). We add now, for each slide on the course view,
      the access and vote rights to the template : can_access and can_vote.
      Those two are computed in backend, using the user's access right instead of admin's.
      But, as if the user is not member of the channel, he cannot get access to the
      course slides (expect for Free Peview ones), so the check on can_vote
      will crash. This is why we check the access rights before checking can_vote,
      for each slides (as free preview slides are still accessible,
      even if the user is not in channel members).
      
      The vote widget is disabled if user's can_access or can_vote = False, enabled otherwise.
      If user have access but have not enough karma, the controller will handle this
      case and return an error to the user telling him he has not enough karma to vote.
      If user can vote but cannot access, the controller will handle this
      case and return an error to the user telling him he has no access to the lesson.
      
      Task ID: 1943788
      PR #31321
      5798ca28
    • David Beguin's avatar
      [IMP] website_slides : allow review, comment and vote only if enough karma · d4db21a9
      David Beguin authored
      To avoid eLearning to be spammed, the comment, review and vote behaviours
      are now allowed only if the user has enough karma to do it.
      
      Here is the new behaviour on courses and slides rating / comment / vote
          -If allow_comment is checked on Course :
              - Review (rating) is allowed on Course only if enough karma
              - Comment is allowed on slides within the course
                  only if enough karma and course type is 'training'
              - Vote is allowed on slides within the course
                  only if enough karma and course type is 'documentation'
          -If allow_comment is not checked on Course :
              - Review (rating) is not allowed on Course
              - Comment is not allowed on slides within the course
              - Vote is not allowed on slides within the course
          - Rating is not allowed on slides within the course anymore
      
      Task ID : 1943788
      PR #31321
      d4db21a9
    • David Beguin's avatar
      [FIX] website_slides : fix and add tests on karma gain · 81cebf34
      David Beguin authored
      Fix karma channel completion computing and karma gain :
          set to complete only if not completed
          and handle eventual multi course completion
      Removes unused karma gain rules.
      Add karma unvote rule to loose the karma gained if user changes his mind.
      Test karma gain on each users.
          Note : technically, public user could be member of a course,
          but functionally speaking, this case should and could never happen
          (it's a non sens anyway)
          -> public user has not been tested for this reason.
      
      Task ID : 1943788
      Closes PR #31321
      81cebf34
    • David Beguin's avatar
      [IMP] website_profile, gamification, : add search bar in all users page · d7cc1520
      David Beguin authored
      This commit adds the search bar in 'All users' page in order to filter on name or company name.
      To be able to keep the position, a non stored computed field has been added on res_users
      to get the position depending on the user's karma.
      
      The podium (top 3 users) is now displayed only if there is no search applied and if the page = 1
      because it has no sens anymore in other cases.
      
      Special thanks to @jem-odoo who helped me finding smart solution for position computing.
      
      Task ID : 1943788
      PR #31321
      d7cc1520
    • David Beguin's avatar
      [IMP] website(_profile,_forum,_slides): move validation email to profile and... · fb40c6bf
      David Beguin authored
      [IMP] website(_profile,_forum,_slides): move validation email to profile and use in forum and elearning
      
      Email validation was necessary on the forum to be able to begin to use the forum
      (ask or answer questions, vote, etc..)
      
      As the new elearning also uses karma since 705376a9,
      the email validation is now also necessary in the eLearning platform.
      
      This is why this commit is moving the email validation process to website_profile
      and extend website_slides (eLearning) and website_forum to use this feature.
      
      In function of where the user asked to send him the validation email,
      the user is redirected on the forum or on the elearning when he clicks on
      'Validate my account' in the received 'email validation' email.
      
      Task ID : 1943788
      PR #31321
      fb40c6bf
  2. Mar 14, 2019
  3. Mar 13, 2019
  4. Mar 12, 2019
  5. Mar 13, 2019
  6. Mar 11, 2019
Loading