Skip to content
Snippets Groups Projects
  1. Dec 24, 2019
    • Patrick Hoste's avatar
      [IMP] website_slides: allow to download slide content and additional resources · 1894dc54
      Patrick Hoste authored
      
      PURPOSE
      
      Currently eLearning lacks feature of having downloadable resources on
      lessons. Indeed for example teachers would like to attach zip files or
      other resources linked to a given lesson.
      
      SPECIFICATIONS
      
      You can now allow the user to download the slide content for pdf and image
      slides. A new icon will be visible next to the fullscreen button on the pdf
      viewer.
      
      Course maintainers can also add additional resources to a slide which will be
      available to download for the user.
      
      Task ID 2066741
      PR #39890
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      1894dc54
    • Patrick Hoste's avatar
      [IMP] website_slides: add comments on answers showed after answering a quiz · e42ee496
      Patrick Hoste authored
      
      PURPOSE :
      
      A quiz after a course content is a good way to check if the user gets the previous lesson.
      Despite, the user/student may not understand why his answer was wrong/correct.
      In this task we'll allow the teacher to add a comment next to the asnwer of a quiz.
      
      SPECIFICATION :
      
      The quiz creator will now be able to comment the answers to inform the frontend user why
      his answer is wrong/correct. He will be able to add the comments both in backend and frontend.
      
      Task ID : 2072566
      PR : #41188
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      e42ee496
  2. Dec 20, 2019
  3. Dec 18, 2019
  4. Dec 20, 2019
    • Thibault Delavallée's avatar
      [FIX] website_slides: fix wrong comodel name in many2many · 4ef326de
      Thibault Delavallée authored
      
      Channels uses tags allowing to categorize and filter content. For that
      purpose a m2m exists between channels (slide.channel) and tags (slide.channel
      .tag). The 2many relationship from tags to channels holds however a wrong
      comodel name. It has no impact on code since relationship table is
      correctly defined and current code does not use the channel_ids fields
      from tags.
      
      closes odoo/odoo#42244
      
      X-original-commit: 46c3ac94485292c59fdfe4b21a8e32eef9d1f998
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      4ef326de
  5. Dec 18, 2019
  6. Dec 12, 2019
  7. Dec 16, 2019
  8. Dec 13, 2019
    • Florent Lejoly's avatar
      [FIX] website_slides: fix cancel of uploaded file · 39979b75
      Florent Lejoly authored
      
      Steps to reproduce
      
        * connect as any user with right to edit website;
        * go to website and chose a course;
        * add content -> chose any of the possibilities;
        * click on choose file, select a file and open it;
        * click on choose file again, and then cancel
      
      You get a traceback. This is due to the right panel that displays a preview
      of the selected file. IN this commit we fix that issue by removing the
      preview panel.
      
      Task id 2146217
      PR#40895
      
      closes odoo/odoo#41837
      
      X-original-commit: e59b86e6
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      39979b75
  9. 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
  10. Dec 04, 2019
  11. Dec 10, 2019
  12. Dec 09, 2019
  13. 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
    • Thibault Delavallée's avatar
      [REF] {website_}mail: move and replace published field of mail.message to is_internal · 5649fc88
      Thibault Delavallée authored
      PURPOSE
      
      Clean posting process and improve mail.message definition and comprehension.
      
      SPECIFICATIONS
      
      Website mail defines a website_published field allowing to publish / unpublish
      comments on the frontend of some modules. This field has several drawbacks :
      
        * it is used only for front-end people (portal, public) and has no real
          effect in chatter / classic discussions;
        * it is used only in some advanced front-end module and is not available
          in portal by default;
        * its naming is not really correct as it is not linked to fields coming
          from the website_published mixin and its behavior is not really
          the same;
        * its use is a bit duplicated with internal flag coming from subtype
          allowing to hide messages related to an internal subtype;
        * there are overrides of standard mail.message methods just to handle
          this flag;
      
      In this commit we change that field by an is_internal flag directly on
      mail.message model itself. It tells if share people (customers, share users)
      are allowed to read the message. This field can be given through posting
      API or set manually using widgets. It is also used in access rights custom
      methods and managed like the internal flag of subtypes.
      
      Mailgateway was already using an internal flag for internal note replies. It
      is renamed to is_internal and propagated as it is now a standard field. It
      also eases code understanding.
      
      Portal is updated to allow managing the flag directly. It means customer portal
      now natively allows to moderate customer comments without any need of website
      modules.
      
      Rating is updated accordingly. An is_internal field is added, replacing the
      related on website published.
      
      LINKS
      
      Task ID 2071556
      PR #38692
      5649fc88
    • Thibault Delavallée's avatar
      [REF] mail, various: rename subtype parameter of message_post to subtype_xmlid · e2b33f46
      Thibault Delavallée authored
      PURPOSE
      
      Clean posting process and improve mail.message definition and comprehension.
      
      SPECIFICATIONS
      
      In order to be more explicit subtype parameter is renamed to subtype_xmlid.
      It therefore clearly indicates it should be a valid subtype Xml ID. Support
      of ill formatted Xml IDs is removed because there is no reason to try to
      add some random prefix. Give something that exists or go to hell, punk !
      
      LINKS
      
      Task ID 2071556
      PR #38692
      e2b33f46
    • Julien Castiaux's avatar
      [FIX] website_slides: external tour used old code · 98374bb0
      Julien Castiaux authored
      
      Fine tunning of 07f70e3c
      
      closes odoo/odoo#41194
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      98374bb0
    • Florimond Husquinet (fhu)'s avatar
      [IMP] website_slide: improve the ways to search through courses · 0a46e086
      Florimond Husquinet (fhu) authored
      
      PURPOSE
      
      Purpose of this commit is to improve search capabilities of eLearning
      frontend application. Searching tags and content should be easier to
      do, update and notice.
      
      SPECIFICATIONS
      
      Before this commit
      - There is no visual indication to what are the selected filters.
      - The user can only select one tag in each dropdown box.
      - When the user selects a tag on one course card, this tag replaces all other
      filters.
      - When the user enters custom search terms, it replaces all other filters.
      - When searching a documentation, a stacktrace appears.
      
      After this commit
      - Selected tags appear as little tag boxes under the search bar.
      - The custom search terms appear as one tag box.
      - It's possible to remove a search tag by clicking on the cross present in each
      little box.
      - It's possible to select multiple tags in each dropdown box.
      - Tags in course cards work the same as tags in dropdown boxes, and add
      themselves to the list of filters.
      - To generate the list of courses to display, a logical OR is operated between
      tags of the same group, and a logical AND is operated between groups of tags.
      - A logical AND is operated between the custom search terms and other filters.
      - A logical AND is operated between the "My courses" options and other filters.
      - Bug when searching a documentation is fixed.
      
      LINKS
      
      Task ID: 2080617
      PR #39259
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      0a46e086
  14. Nov 29, 2019
    • qmo-odoo's avatar
      [FIX] website_slides: Fix traceback when creating content in mobile · a82fd088
      qmo-odoo authored
      
      This commit fixes the traceback that happens when we try to create
      a question from the survey form in mobile mode.
      
      The problem was due to the context not being propagated
      to the "add record" button that appears in mobile mode.
      Therefore, as we use that context in our widget, it crashes.
      
      The solution to this is to just use the normal tree view behavior
      instead of our override when we are in a mobile environment.
      
      LINKS
      
      closes odoo/odoo#41143
      
      Taskid: 2071342
      Pr: #40694
      X-original-commit: 0dc7d956
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      a82fd088
    • Thibault Delavallée's avatar
      [REF] mail, various: improve mail creation calls, notably author and email from default computation · 1838191e
      Thibault Delavallée authored
      Purpose of this commit is to correctly compute author_id and email_from
      in mail_message and mail_mail as they depends from each other. Moreover it
      is a good idea in various flows to specify email and author when giving
      creation values to avoid default computation that is not always guaranteed to
      be accurate notably when involving super user.
      
      Mail message creation could lead to desynchronized values between author
      and email_from. This is improved with this commit by correctly inheriting
      from default_get and computing both of them at the same time instead of having
      two default values. Indeed they depend on each other.
      
      Same thing is done for mail composer. Mail Thread offers a tool method to
      find email_from / author_id based on having one of those values or current
      user and it is called whenever necessary.
      
      Some calls to mail template send_mail are also cleaned.
      
      Task ID 1853147
      PR #32243
      1838191e
    • Thibault Delavallée's avatar
      [IMP] mail: add computed fields for company emails · b9a22d2f
      Thibault Delavallée authored
      Purpose of this commit is to give a way to access to company email and catchall
      with formatting. Those will be used in various automated emails. Indeed
      currently several templates use either ``company_id.partner_id.email``,
      ``company_id.email``, or even don't provide fallback values.
      
      With this commit from a company record people will be able to use
      
        * a correctly formatted catchall: ``"My Company Name"
          <catchall_alias@catchall_domain>``
        * an email_formatted field like partner email_formatted that is either its
          partner-related email_formatted value, or formatted catchall if its partner
          is not correctly configured;
      
      Various calls to mail creation are updated accordingly.
      
      Task ID 1853147
      PR #32243
      b9a22d2f
    • 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
  15. Nov 28, 2019
  16. Nov 25, 2019
  17. Nov 22, 2019
  18. 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
  19. Nov 20, 2019
  20. 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
  21. Nov 18, 2019
  22. Nov 14, 2019
  23. Nov 13, 2019
  24. Nov 06, 2019
Loading