Skip to content
Snippets Groups Projects
  1. 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
  2. Oct 11, 2019
  3. Oct 08, 2019
  4. Oct 07, 2019
  5. Oct 03, 2019
  6. 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
  7. Oct 01, 2019
  8. Sep 29, 2019
  9. Sep 27, 2019
  10. 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
    • Victor Feyens's avatar
      [IMP] * : manifest module categories cleanup · 07631a51
      Victor Feyens authored
      
      closes odoo/odoo#35754
      
      Signed-off-by: default avatarDamien Bouvy (dbo) <dbo@odoo.com>
      07631a51
  11. Sep 24, 2019
  12. Sep 22, 2019
  13. Sep 24, 2019
  14. Sep 23, 2019
    • Juhil Somaiya's avatar
      [FIX] *: hide technical field widgets in non-debug mode (Studio) · ececa1f7
      Juhil Somaiya authored
      
      *:
      - account
      - barcodes
      - calenndar
      - hr_timesheet
      - mail
      - mass_mailing
      - partner_autocomplete
      - web
      - website_slides
      
      This commit removes description of fields that should not be shown in
      non-debug mode Studio. Only field widgets whose own description is
      set are displayed in non-debug mode Studio in "Widget" of sidebar.
      In other words, even if any ancestor has a description but not the
      current widget, it won't be displayed in the sidebar in non-debug
      mode.
      
      Task-Id 2056992
      
      closes odoo/odoo#35902
      
      Signed-off-by: default avatarAlexandre Kühn (aku) <aku@odoo.com>
      ececa1f7
  15. Sep 15, 2019
  16. Sep 22, 2019
  17. Sep 20, 2019
  18. Sep 19, 2019
    • Florent Lejoly's avatar
      [FIX] website_slides: remove creation of quizz in reporting · 397f86b9
      Florent Lejoly authored
      
      Currently in the slide.question view it is possible to open a form
      to create new questions for quizzes, but it is impossible to fill the form with
      the required information to create a new question. So the create button has no purpose.
      This as "slide_id" is required but can't be set in the form.
      Now the option to add question from the reporting tab 'Quizzes'
      is removed as the questions (with the answers) are added in the form from
      slide.slide.
      
      closes odoo/odoo#37117
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      397f86b9
  19. Sep 18, 2019
  20. Sep 19, 2019
    • Sébastien Theys's avatar
      [IMP] *: remove image_64 and clean views · b6288e54
      Sébastien Theys authored
      
      There are too many image sizes. Since they are stored resized this takes time to
      generate when saving a new image, it's more rows on the attachment table, more
      files on the disk, ...
      
      64px is close enough to 128px that it can be removed without a big impact on
      download size.
      
      It will even reduce download and number of requests when both images are
      displayed because now only one has to be downloaded and then benefit from cache.
      
      The difference between the two is typically around 1.5kB which is negligible
      these days, especially when the request overhead is around 0.5kB already, not
      even taking into account other factors such as latency.
      
      If a 64px image must absolutely be returned, it is still possible to pass the
      size parameters to the image route. But the current guideline is to handle
      resizing in the views when necessary.
      
      Views
      =====
      
      - remove width and height attributes when existing CSS rules are overriding them
        (eg. `.oe_kanban_avatar` in the right context)
      - add CSS rules instead of width and height attributes when possible
      - use `object-fit: cover;` where width and height are forced to avoid distortion
        of non-square images
      - for products, use `object-fit: contain;` instead, keep ratio but without crop
      - add new CSS rules where the expected size was max 64px*64px before due to the
        image size itself
      - remove `img-fluid` where using size classes to avoid conflicting rules
      
      task-2060865
      
      closes odoo/odoo#36147
      
      Signed-off-by: default avatarSébastien Theys (seb) <seb@odoo.com>
      b6288e54
  21. Sep 13, 2019
  22. Sep 15, 2019
  23. Sep 13, 2019
  24. Sep 12, 2019
  25. Sep 13, 2019
    • Lucas Lefevre's avatar
      [FIX] website_slides: still another fix of computed fields · 290341b4
      Lucas Lefevre authored
      This commit fixes 2 issues coming from the recent ORM changes: records are
      new records in onchange and compute methods must assign a value for all records.
      
      In an onchange method, self.ids is a list of integer (real records)
      whereas self.id is a NewId (virtual record)
      
      Here a result dict was built using the reals ids as keys but later NewIds
      are used as keys. Solution is to use record._origin to access the real record.
      
      Moreover, the two dicts `result` and `type_stats` are the same. Assigning one
      into the other is useless.
      
      Task 2067872 (eLearning internal testing)
      PR #36756
      290341b4
    • Thibault Delavallée's avatar
      [FIX] website_slides: avoid admin being twice member of courses · 0eec4d22
      Thibault Delavallée authored
      Since admin is responsible of all created demo channels and then re-added
      manually as member in demo data of slide.channel.partner he is actually
      twice member of some channels. This commit fixes that by resetting its
      membership status before adding membership demo data.
      
      PR #36756
      0eec4d22
    • 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
    • Thibault Delavallée's avatar
      [FIX] website_slides: make content stat button redirection match counters · 477b73ed
      Thibault Delavallée authored
      Course content counters count only published content while content stat button
      redirects to all contents. Solution to this mismatch is to apply a search
      filter on button action to display published ontent by default.
      
      Also remove unnecessary action. Using a type="edit" seems sufficient, no need
      to define a python method just for that purpose.
      
      Task 2067324 (counters / action on content mismatch)
      PR #36756
      477b73ed
  26. Sep 11, 2019
  27. Sep 10, 2019
  28. Sep 03, 2019
  29. Sep 01, 2019
  30. Sep 10, 2019
  31. Sep 08, 2019
Loading