Skip to content
Snippets Groups Projects
  1. 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
    • Thibault Delavallée's avatar
      [IMP] website_slides: merge slide quiz answers constraints in a single method · a4abdfa3
      Thibault Delavallée authored
      Currently there are several checks on answer integrity for slide quiz
      questions. In this commit we simplify code to effectively implement
      what is requested: 1 valid answer and at least 1 invalid answer.
      
      Task ID 1999636
      PR #35326
      a4abdfa3
  2. Nov 28, 2019
  3. Nov 25, 2019
  4. Nov 22, 2019
  5. Nov 21, 2019
    • Romain Derie's avatar
      [IMP] http_routing, portal, website_*: clean 404 templates · 4178a383
      Romain Derie authored
      
      A nicer 404 layout was introduced with e9106f8f but the specs got changed
      just after it was merged.
      
      It has been decided to make the 404 fully editable (before, everything was
      fully editable except the popular page div).
      
      In order to do this, the 404 template can't have inherited views, which brings
      the following changes:
      1. Remove every main website module xpath view adding their most popular page
      2. Remove the xpath view in portal to add popular page part (was not needed
         in http_routing/web). It has been decided that having `Home` ('/' url) even
         without portal and/or website is not a big deal.
      
      Those changes allow the 404 template to be written in a single view without any
      inherited views.
      The 404 will be the same for backend only databases, portal and website.
      
      task-1966460
      
      closes odoo/odoo#40637
      
      Signed-off-by: default avatarJérémy Kersten (jke) <jke@openerp.com>
      4178a383
    • Florimond Husquinet (fhu)'s avatar
      [IMP] website_slide: add a card description independent from short description · 07f70e3c
      Florimond Husquinet (fhu) authored
      
      The Channel model contains the two following fields: `description` and
      `description_html`. The former is a short plain-text description that can be
      filled in the creation form. The latter is a long html-formatted description.
      
      Before this commit:
      
      The description displayed on the card of the course is the `description` field.
      
      After this commit:
      
      There is an additional `description_short` field, which is initialized to the
      same value as the `description` field. If the `description` field is modified
      the `description_short` reflects the modifications. This happens however only
      if the user didn't modify the `description_short` field manually. If it is
      modified to another value manually, the link is broken.
      
      Description short is now used only on the course page, below title, in the
      header. Description short is used in kanban card displayed in homepage.
      Html description is used as a long course description on course page.
      
      Beside, in the creation form of a course, the description textarea is now a
      one-line input field to reflect the fact that it's supposed to be a relatively
      short description.
      
      Task ID: 2026165
      PR #39388
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      07f70e3c
  6. Nov 20, 2019
  7. Nov 19, 2019
    • ryv-odoo's avatar
      [REF] rating, various: improve rating.rating ACLs · c7a1a2d9
      ryv-odoo authored
      
      PURPOSE
      
      Rating model should be available only for internal users. External users
      access them only through dedicated routes or controllers using sudo and/or
      granting access through tokens. Therefore simplifying ACLs should be feasible.
      
      SPECIFICATIONS
      
      Remove access to rating.rating for public and portal users. Only employees
      can access it, with full access given to system admins.
      
      Update various functional flows to use sudo() and check that access is
      verified before using sudo.
      
      Impacted modules
      
        * rating / mail: add groups on some rating related fields as only
          internal users should access them now;
        * rating / mail: set some statistics fields using compute_sudo as their
          value should be accessible for external people even without access to
          the underlying rating.rating records;
        * project: makes some use of rating and has to be updated, notably for
          the public rating page;
        * website_{livechat, rating, slides}: add sudo in public routes as access
          is already granted;
        * website_slides: set statistics field using compute_sudo as their
          value should be accessible for external people;
      
      TASK ID 2053096
      PR #36592
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      c7a1a2d9
  8. Nov 18, 2019
  9. Nov 14, 2019
  10. Nov 13, 2019
  11. Nov 06, 2019
  12. Nov 04, 2019
  13. Oct 30, 2019
    • Christophe Monniez's avatar
      [IMP] tests: log a warning when HttpCase test in at_install · 8d5da6e4
      Christophe Monniez authored
      
      When loading a page on an existing starting database, registry is not
      fully loaded causing potential error when trying to access model
      existing in database (views, menitem, ...) since model added in last
      loaded module does not exist in registry.
      
      Thus, executing browser js test may lead to errors when executed during
      an update on a database with other modules installed.
      
      HTTPCase should be executed post_install to ensure that registry is
      fully loaded to avoid this problem.
      
      Since HTTPCase are slower than other test, it is also a good idea to
      execute them at the end, in order to prioritize fast fail.
      
      With this commit, a warning is isued if such a test class is tagged to
      run at install time.
      
      While at it, remove deprecated at_install and post_install helpers and
      remove the deprecated phantom_js alias.
      
      closes odoo/odoo#39462
      
      Signed-off-by: default avatarChristophe Monniez (moc) <moc@odoo.com>
      8d5da6e4
  14. Oct 28, 2019
    • Jeremy Kersten's avatar
      [IMP] website*: clean sitemap · e19227d3
      Jeremy Kersten authored
      
      From now, you need to explicitely add sitemap=True if you want your controller
      into the sitemap.
      
      It's the default value, but if you forgot it, it will raise a Warning on runbot.
      It will avoid wrong controller in sitemap and duplicate (empty) content.
      
      From now, if your model contains a field website_id, the modelConverter for
      sitemap will automatically add the domain:
         "[('website_id', 'in', (False, current_website_id))]"
      
      It avoid redundant declaration and ugly url in redirect/rewrite view.
      
      Migration: need to remove it from url_from in website.rewrite
      
      task-2065018
      
      closes odoo/odoo#39427
      
      Signed-off-by: default avatarJérémy Kersten (jke) <jke@openerp.com>
      e19227d3
  15. Oct 25, 2019
  16. 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
  17. Oct 22, 2019
  18. Oct 23, 2019
  19. Oct 18, 2019
  20. Oct 07, 2019
  21. 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
  22. Oct 11, 2019
  23. Oct 08, 2019
  24. Oct 07, 2019
  25. Oct 03, 2019
  26. 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
    • Stéphane Bidoul's avatar
      [IMP] mail: enforce kw args for message_{post/notify/log} · c8c8413e
      Stéphane Bidoul authored
      
      Since there are message_post overrides using the form `def message_post(self,
      **kwargs)` in some modules, this method is intended to be invoked with keyword
      arguments only.
      
      This commit enforces this behavior. Calls such as `message_post("body")` will
      fail regardless of which addon is installed, forcing users to use
      `message_post(body="body")`.
      
      It also fixes a message_post override in hr, and applies the same
      mechanism to message_notify, and _message_log.
      
      closes odoo/odoo#33306
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      c8c8413e
  27. Oct 01, 2019
  28. Sep 29, 2019
  29. Sep 27, 2019
Loading