Skip to content
Snippets Groups Projects
  1. Mar 07, 2019
    • Thibault Delavallée's avatar
      [REF] website_slides: rework standard lesson page view · 20e68b32
      Thibault Delavallée authored
      
      Purpose of this commit is to perform a cleaning and upgrade of the lesson
      view in front-end when not using the fullscreen mode. This page had not
      been updated since eLearning addition.
      
      A method is added on slide model to have a protected method computing quiz
      related information on a given set of slides, notably potential karma gain,
      gained karma and number of attempts. It is mainly a code move from controllers
      now working in batch.
      
      Some linting is also done, notably a badly-named file.
      
      See original eLearning task for main specifications [1].
      
      Commit linked to task ID 1941250 and PR #31657.
      
      [1] See task ID 1902304
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      20e68b32
  2. Mar 01, 2019
  3. Mar 07, 2019
  4. Mar 05, 2019
  5. Mar 07, 2019
    • Jérome Maes's avatar
      [REF] website_slides: redesign quiz widget · 3393dd00
      Jérome Maes authored
      
      This commit makes the quiz widget a real odoo widget that triggers up some
      events. The widget is now only responsible of
      
       * fetching quiz data (if not given)
       * decorating the anwsers according to the result
       * displaying message (error or modal)
      
      To do so, some code move/rewrite was needed
      
       * extract and factorize some template
       * add 'sudo' on technical model to avoid access rights error
       * factorize some python method from controller to model
       * remove some CSS classes to lighten the code
       * fixing access model error
       * make quiz widget handle the display of error message
       * give browse record for template rendering, rather than slug
       * cleaning some spaghetti code in Fullscreen widget
       * ...
      
      Commit linked to task ID 1941250 and PR #31584.
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      3393dd00
    • David Beguin's avatar
      [IMP] website_slides_forum : allow to create a forum and to comment on course frontend creation · f029bf71
      David Beguin authored
      When creating a course via the frontend, the behaviour with forum and comment
      should be the same than from backend. The website_publisher can decide to
      create or not a forum linked to this course and decide independantely to allow
      the review and comment on that course.
      
      Commit linked to task ID 1941250 and PR #31584.
      f029bf71
    • Thibault Delavallée's avatar
      [FIX] website_slides: correctly return deferred when calling slide routes in fullscreen · 47b308d8
      Thibault Delavallée authored
      I promise to fix all deferred. Huk huk huk.
      
      Commit linked to task ID 1941250 and PR #31584.
      47b308d8
  6. Mar 06, 2019
  7. Feb 28, 2019
  8. Mar 06, 2019
  9. Mar 05, 2019
  10. Mar 04, 2019
  11. Mar 01, 2019
    • RomainLibert's avatar
      [FIX] mail: set mail.activity.type related fields readonly · 30bbfff8
      RomainLibert authored
      
      Currently it is not possible to create or write on a mail
      activity without having the rights to write on mail activity type.
      
      This is caused by the some related fields on mail activity are
      not readonly hence trying to write on mail activity type
      
      This issue was previously shadowed by a sudo call both in
      the create and write methods, those disappeared
      with the following commit odoo/odoo@b9c8ba83e6b367275eca28255dd7df9b8ac84aa1
      
      As those fields should never have been defined as readonly=False,
      this commit sets them to readonly=True
      
      closes odoo/odoo#31468
      
      Signed-off-by: default avatar"Romain Libert (rli)" <rli@odoo.com>
      30bbfff8
  12. Mar 04, 2019
    • Robot Odoo's avatar
      [MERGE] website_slides(_*): improve profile, lesson list display and demo data · 6fc1f7d3
      Robot Odoo authored
      
      This merge contains various improvements and fixes related to the new
      eLearning application. Sub commits will give you more details on this
      merge content as everything is not completely related.
      
      Containing mainly
       * improve demo data to have more links and quizzes;
       * redesign the profile page, make it responsive and use bs4 when possible;
       * fix lesson list in training channels not displaying all slides;
       * improve lesson list design;
      
      Merge linked to task ID 1941250 and PR #31453 about post-merge
      cleaning and review.
      
      Signed-off-by: default avatar"Thibault Delavallee (tde)" <tde@openerp.com>
      Unverified
      6fc1f7d3
    • Thibault Delavallée's avatar
      [FIX] website_slides: fix display of lessons in training course · dc76c99a
      Thibault Delavallée authored
      Currently slides are displayed in a reorderable list, using current user
      access rights. This means external customers see only published and free
      lessons.
      
      However purpose of course page is to display all lessons, and display
      only available ones as clickable. Other one should be displayed as muted
      to tease people.
      
      Note that a specific lesson page does check for access rights. Here we
      just display all lessons names. A label for free preview is also added.
      
      Fetch of data when displaying a channel is therefore a bit modified as
      there are less differences between training and documentation channels.
      User progress is also updated to be easier to use in templates.
      
      Commit linked to task ID 1941250 and PR #31453
      dc76c99a
    • Stefano Rigano's avatar
      [IMP] website_slides: slightly improve homepage · a488cf67
      Stefano Rigano authored
      Purpose of this commit is to make a new design linting pass on homepage.
      Containing
      
       * various bs4 and responsive improvements;
       * footer banner improvements;
      
      Commit linked to task ID 1941250 and PR #31453
      a488cf67
    • sri-odoo's avatar
      [REF] website_profile and dependencies: improve global layout and design · af41382f
      sri-odoo authored
      Purpose is to perform a cleaning pass on website_profile templates. It
      cleans the DOM, templates and CSS and proposes various improvements on
      general design and layouting. This includes notably
      
       * lessen custom CSS and use bootstrap 4 classes;
       * simplify layout when possible;
       * make is responsive and mobile friendly;
      
      No functional changes should occur with this commit.
      
      Sub modules are impacted as profile is extended in various other
      applications: eLearning, forum and certification.
      
      Commit linked to task ID 1941250 and PR #31453
      af41382f
    • sri-odoo's avatar
      [REF] website_profile: improve rank progress template · 43635985
      sri-odoo authored
      Purpose is to make it better looking and responsive.
      
      Commit linked to task ID 1941250 and PR #31453
      43635985
    • Thibault Delavallée's avatar
      [FIX] website_slides: add missing presentation icon used in some templates · 2ab2de24
      Thibault Delavallée authored
      A specific template to display an icon depending on slide type has been
      added recently. However presentation icon was missing. This commit fixes
      that.
      
      We also added an option to tune the classes added on the icon. It gives more
      flexibility when using it.
      
      Commit linked to task ID 1941250 and PR #31453
      2ab2de24
    • Thibault Delavallée's avatar
      [FIX] website_slides: various models improvements · adcdb4e0
      Thibault Delavallée authored
      Purpose of this commit is to fix and improve some model related bits of
      code:
      
       * add an ondelete cascade on some required fields;
       * make a public method private because it should be accessed only through
         controllers;
       * do not add odoobot as channel member; notably for demo data it can create
         unnecessary of noise in members and notifications;
      
      Commit linked to task ID 1941250 and PR #31453
      adcdb4e0
    • Thibault Delavallée's avatar
      [IMP] website_slides(_*): improve demo data · 2f8ea621
      Thibault Delavallée authored
      Purpose of this commit is to improve eLearning demo data. Notably links
      (links to external resources on a given slide) and quizzes (allowing to
      gain karma) are added. Some slides are added. Demo user interaction with
      eLearning is also added, such as membership and votes. Finally a channel
      is specifically kept specific to 1 single slide of type certification as
      its flow has to bypass some screens when selling pure certifications.
      
      Commit linked to task ID 1941250 and PR #31453
      2f8ea621
Loading