Skip to content
Snippets Groups Projects
  1. Sep 26, 2023
  2. Sep 25, 2023
  3. May 04, 2023
  4. Jul 26, 2022
    • Benoit Socias's avatar
      [FIX] website_slides: make text readable in white navigation bar · 2e121594
      Benoit Socias authored
      
      The navigation bar inside the Courses main page and the courses list
      are forced to white with an inline style.
      When a dark palette is used it makes the text color white as well.
      Because of this the texts in those navigation bars cannot be read
      anymore.
      
      This commit resets the navigation link colors when the background is
      forced to white.
      
      Steps to reproduce:
      - Pick a dark palette.
      - Go to the "Courses" page.
      => "All courses" and its icon were not visible anymore.
      
      task-2855511
      
      closes odoo/odoo#92763
      
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      2e121594
  5. May 19, 2022
    • Florian Charlier's avatar
      [FIX] website_slides: fix resource ACLs · be889efe
      Florian Charlier authored
      This commit fixes ACLs for slide resources:
       * Access to resources should be blocked for non-members (except publishers
       for the course: responsible and managers)
       * Tests are included
      
      Task-2818136
      Part of Task-2663320
      
      Part-of: odoo/odoo#88454
      be889efe
    • Florian Charlier's avatar
      [FIX] website{,_sale}_slides: fix join/buy links · 4b4be19c
      Florian Charlier authored
      This commit fixes the following fronted bugs:
        * One link to "buy course" that was not updated to use the post_link class
        * The join course link for "payment" courses after completing the quiz once
          logged in.
        * The link to resources that became accessible for non-authorized users for
          "payment" courses
      
      Task-2818136
      Part of Task-2663320
      
      Part-of: odoo/odoo#88454
      4b4be19c
  6. Jan 14, 2022
  7. Sep 14, 2021
    • Nathan Marotte (nama)'s avatar
      [FIX] website_slides : iframe code block appearing when pdfviewer loaded · cda27bc5
      Nathan Marotte (nama) authored
      Issue: When viewing a pdf in a website_slide, in certain conditions (
      odoo detect the slide is externally embedded), a <iframe> code block
      is displayed on the pdf rendering it really hard to read. As a work
      around, one could click on the "<\> Embed" button to make it disapear
      
      Steps to reproduce :
       1) Run a local odoo server with the website_slides module
       2) Set up a ngrox tunneling service to your localhost and good port
       3) Find or create a **document** slide and get its id (<slide_id>)
       4) Access the slide via the website url on the slide
       5) Go down the page in the Share tab and copy the iframe
        -Replace http by https in the src attribute of the iframe if necessary
       6) go back to the dashboard, open the inspector and add the iframe in
       the body of the webpage
       -> The slide is correctly detected as non embed
       7) Access your Odoo database with the ngrox https forward (example :
       https://0dfc-2a02-a03f-6b9b-b300-bd6c-8048-90f1-3f25.eu.ngrok.io)
       8) Repeat step 3 to 6 included
       -> The slide is detected as embed, so a <iframe> text area appears
       and make the pdf hard to read
      
      Alternative steps to reproduce :
       1) Run a local odoo server with the website_slides module
       2) Go to the usual http://localhost:8069/ to access your database and
       navigate to a PDF slide in eLearning
       3) Change the localhost in the URL to 127.0.0.1 (Example
       http://localhost:8069/slides/slide/gardening-the-know-how-1 becomes
       http://127.0.0.1:8069/slides/slide/gardening-the-know-how-1
      
      ) and press
       Enter to go to the new URL
       4) Change back the 127.0.0.1 to localhost and press Enter to go to the
       new URL
       5) You might have to repeat the back and forth between the two domains
       -> The slide is detected as embed, so a <iframe> text area appears
       and make the pdf hard to read
      
      Why is that a bug:
       It makes the PDF unreadable unless we know that we must click on that
       button, it really shouldn't be like that
      
      opw-2499110
      
      closes odoo/odoo#76447
      
      X-original-commit: 0e9975d7
      Signed-off-by: default avatarNathan Marotte <nmarotte@users.noreply.github.com>
      cda27bc5
  8. Jul 26, 2021
    • Julien Banken's avatar
      [FW][FIX] slides: prevent the # anchors of the PDF controllers from triggering a scroll jump · 602d0a58
      Julien Banken authored
      
      PURPOSE
      
      Currently, the PDF viewer is loaded from an iframe and the PDF controllers
      contains empty anchor links. When the user clicks on one of these links,
      the browsers based on Chromium will trigger a "scroll jump" and the iframe
      will be placed at the top of the browser window.
      
      When the PDF document is larger than the viewport, this behavior can be
      quite annoying: The user will have to scroll the browser window to
      see the controllers each time they click on a controller (-> link) as
      (1) the controllers triggers a scroll jump and (2) the controllers are
      below the document that does not fit entirely on screen. To avoid that,
      we will add an event listener that returns false on each controller. The
      controllers will then no longer trigger a scroll jump.
      
      SPECS
      
      - Add an event listener on the PDF controllers links to prevent a scroll jump.
      
      LINKS
      
      Task id: 2500574
      
      closes odoo/odoo#73943
      
      X-original-commit: 912acb73
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      602d0a58
  9. Jun 17, 2021
    • Nicolas Lempereur's avatar
      [FIX] website_slides: can edit frontend enroll message · 6334c728
      Nicolas Lempereur authored
      
      The frontend enroll message was display as a `<small/>` tag, but it
      seems that lxml HTMLParser parse it wrongly, for example:
      
        html.tostring(html.fromstring('<small data-oe-model="test"><p></p></small>'))
      
      returns:
      
        '<div><small data-oe-model="test"></small><p></p></div>'
      
      So branding attributes like data-oe-model that are on small tag are not
      found on root node that has become a `div` tag after parsing => this causes
      a traceback error when saving a change in this part.
      
      Fix: use small as wrapper for `<div/>` tag that is treated correctly by
      HTMLParser (span is also treated correctly but div makes more sense
      here).
      
      opw-2573955
      
      closes odoo/odoo#72304
      
      Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
      6334c728
  10. Jun 15, 2021
    • Djamel (otd)'s avatar
      [FIX] website_slides: hide the "Go to website" button if the slide is not saved · 5b9aa865
      Djamel (otd) authored
      
      Steps to reproduce the bug:
      - Go to Elearning > choose any course or create a new one
      - Click on “add content” :
          - Add a title to slide
          - Click on "Go to Website"
      
      Problem:
      An error is triggered because we call the "create" method to save the slide, which tries to access the “channel_id”, the course ID in which the slide will be added. However, the field is not set in values.
      The "create" or "write" function in "slide_channel" must first be called to save the course, which will then call the create function in "slide_slide"
      
      Solution :
      Hide the "Go to website" button as long as the course is not created and therefore has no id
      
      opw-2526541
      
      closes odoo/odoo#72185
      
      X-original-commit: e412ba48
      Signed-off-by: default avatarDjamel Touati <DjamelTouati@users.noreply.github.com>
      5b9aa865
  11. May 19, 2021
  12. Dec 03, 2020
    • Nicolas Galler's avatar
      [IMP] website_slides: add zoom controls, and set default zoom · 0247a94f
      Nicolas Galler authored
      
      - use a default scale when the viewer is shown, to fit the document to
      the available space
      - avoid using CSS scaling on the canvas, as this makes the output blurry
      - add some zoom controls in the viewer
      - fix CSS class for icon on the full-screen toggle (this toggle was
      previously not displayed because of it)
      - move download button left (to avoid overlapping with "Chat with Us"
      box on odoo.com)
      
      opw-2389716
      
      closes odoo/odoo#62637
      
      Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
      0247a94f
  13. Oct 22, 2020
    • Benoit Socias's avatar
      [FIX] various: not translate the close icon of notifications · 9896af94
      Benoit Socias authored
      Same change in several areas where translations existed:
      - website editor notification popup
      - elearning share popup
      - forum remediation filter popup
      - event registration attendees popup
      - portal rating popup
      - stripe payment error popup
      And many other locations where there were no translations yet
      "&times;" has been replaced by its UTF8 character.
      Also introduced aria-label where missing.
      
      Before this commit the close icon was included in translated resources.
      For example, in Spanish the "&times;" had been turned into "&veces;"
      thus not rendering an icon anymore
      
      After this commit the close icon is not a translated text anymore and
      remains an icon across all languages
      
      https://github.com/odoo/odoo/pull/60186
      
      
      task-2312878
      
      closes odoo/odoo#60186
      
      Related: odoo/enterprise#14209
      Signed-off-by: default avatarJérémy Kersten (jke) <jke@openerp.com>
      9896af94
  14. Nov 02, 2020
  15. Oct 29, 2020
  16. Oct 23, 2020
  17. Oct 15, 2020
    • Hiral Bhavsar's avatar
      [FIX] mail, website_slides: fix while accept the request from the new attendee · becf051f
      Hiral Bhavsar authored
      
      Before this commit:
      
      We have a new feature that if the course is private, and attendee make the
      request to access the course it will create an activity for 'course responsible'.
      
      Currently, after accepting the invitation request from the new user, it is still
      not considered the user as an attendee and not displaying like 'You're enrolled'
      to the respective users
      
      After this commit:
      
      The features of access invitation on courses will be workable.
      
      Task-2328389
      
      closes odoo/odoo#59504
      
      Signed-off-by: default avatarAlexandre Kühn (aku) <aku@odoo.com>
      becf051f
  18. Oct 14, 2020
    • Priyanka Kakadiya's avatar
      [FIX] website_slides: properly display muted text in full-screen · 7f7f9c6c
      Priyanka Kakadiya authored
      
      Since a refactoring of the handling of the color system and the way the text
      muted is handled, the text-muted isn't visible on the full-screen mode of a
      course. That is becuase text-muted is based on the font color set for the body,
      which in this case is quite similar to the background of left panel in
      full-screen course content.
      
      This commit fixes the issue by using `text-600` class that is suited for this
      scenario (the background color is fixed here irrespective of the color-palette,
      and so should be muted text-color) instead of `text-muted` for the left panel
      of full-screen course content.
      
      taskId - 2346013
      closes #59390
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      7f7f9c6c
  19. Oct 13, 2020
    • Nasreddin (bon)'s avatar
      [FIX] website_slides: Google drive does not start (error message) · c107edf7
      Nasreddin (bon) authored
      
      Issue
      
      	- Install "Elearning" module
      	- Activate "Drive" credidentials in settings
      	- Go to any course and edit it.
      	- In "Content" tab, click on "Add Content"
      	- Select `Video` as 'Type'
      	- Copy/Paste the Google Drive video link in "Document URL" field
      	- Wait for other field to be computed then "Save & Close"
      	- Save the course
      	- Go to the website to watch this new content
      
      	Youtube error message
      
      Cause
      
      	'mime_type' field is readonly. When saving the course (slide.channel),
      	the slide is not saved yet, and therefore drop the 'mime_type' value.
      	When generating the `embed url`, it verify if a mime_type is set: if not,
      	it will generate an iframe with youtube.com as domain, else,
      	a drive.google.com domain.
      
      Solution
      
      	Add `force_save="1"` on `mime_type` field.
      
      opw-2294344
      
      closes odoo/odoo#59913
      
      X-original-commit: 987b9bf4
      Signed-off-by: default avatarbon-odoo <nboulif@users.noreply.github.com>
      c107edf7
  20. Aug 18, 2020
  21. Aug 12, 2020
  22. Aug 10, 2020
  23. Aug 11, 2020
    • Patrick Hoste's avatar
    • Patrick Hoste's avatar
      [REF] website_slides: improve elearning backend usability and onboarding · 4f2a4b17
      Patrick Hoste authored
      PURPOSE
      
      Improve elearning backend usability and onboarding
      
      SPECIFICATIONS
      
      Improve layout of email send when invite. Do like a SO, add the join button
      in the notification email and not in the composer itself. It required to
      create a new notification layout specific to that invite wizard.
      
      Improve channel form view: remove statistics as they are already displayed
      in various places, add a stat button for content/visits, better display of
      karma (split gain from karma-based access rules).
      
      Automatically publish channel's product to avoid de-synchronization of publish
      flags.
      
      Remove unused channel_url field on wizard.
      
      LINKS
      
      Task ID-2241513
      PR #55698
      4f2a4b17
    • Patrick Hoste's avatar
      [REF] website_slides: improve course frontend page · 255bb3ab
      Patrick Hoste authored
      PURPOSE
      
      Improve onboarding and user experience and course frontend
      
      SPECIFICATIONS
      
      Overall improvements and onboarding :
        * new and improved default images for both course types;
        * preview / free preview badge update;
        * copy writing and spacing update;
        * allow to specifically choose a slide to promote. Display promoted slide is
          not optional anymore as configured in backend;
        * display a sample of lessons if no lesson in a course;
      
      LINKS
      
      Task ID-2241513
      PR #55698
      255bb3ab
    • Patrick Hoste's avatar
      [REF] website_slides: improve eLearning homepage · 2e7c398f
      Patrick Hoste authored
      PURPOSE
      
      Improve onboarding and user experience of eLearning homepage
      
      SPECIFICATIONS
      
      Overall improvements and onboarding :
        * remove "heroes" banner (can be customized);
        * improve copywriting;
        * hide achievements if not logged;
        * hide void sections (do not display "no achievements currently");
        * remove button on top "pick a course", can be done with a customization
          id necessary;
      
      LINKS
      
      Task ID-2241513
      PR #55698
      2e7c398f
    • Patrick Hoste's avatar
      [IMP] portal_rating: allow to tweak popup composer button display · 414329dc
      Patrick Hoste authored
      PURPOSE
      
      Change the display of the button to open the composer from btn-primary to
      btn-link.
      
      SPECIFICATIONS
      
      In order to ease integration of popup composer rating widget, let us allow
      to customize classes given to the button triggering it. In slides we want
      specifically it to be a link, not a button.
      
      LINKS
      
      Task ID-2241513
      PR #55698
      414329dc
  24. Jun 22, 2020
    • Jérémy Hennecart's avatar
      [IMP] *: enable sample data in several views · 9389f7ce
      Jérémy Hennecart authored
      This commit sets attribute sample="1" in a bunch of list and
      kanban views, to enable the new sample data feature when views are
      empty.
      
      Task 2232801
      
      X-original-commit: 5471309b35619f307242c2704c7681ba63d2be42
      9389f7ce
  25. Jun 15, 2020
  26. Jun 08, 2020
    • Patrick Hoste's avatar
      [IMP] website_slides: add possibility to request access to private course · 78637439
      Patrick Hoste authored
      PURPOSE
      
      Before this commit, a user could not contact a course responsible to ask him
      to join. With this commit he is be able to do it.
      
      SPECIFICATIONS
      
      Change the message 'Contact website administrator' to 'Contact Responsible'.
      
      Add the name of the course responsible in the course description panel. When
      clicking on its name it opens a modal to request access to the course. It
      creates an activity linked to the customer and assigned to the responsible.
      
      When hovering the 'You're enrolled' button the fa-check icon changes to a
      fa-times icon to show that you can unsubscribe when clicking.
      
      LINKS
      
      Task ID : 2127364
      PR : #40708
      78637439
    • Patrick Hoste's avatar
      [FIX] website_slides: changes enroll_msg default value · ad8c53ac
      Patrick Hoste authored
      SPECIFICATION
      
      Changes enroll_msg default value to 'Contact Responsible' instead
      of testing if it was empty or not. Since the FieldHtml widget sets
      the default value to '<p><br></p>' it was never empty.
      
      LINKS
      
      Task ID : 2127364
      PR : #40708
      ad8c53ac
  27. May 15, 2020
    • Yannick Tivisse's avatar
      [IMP] various: Update list views with new widgets · 7b714a3b
      Yannick Tivisse authored
      Purpose
      =======
      
      The following task implemented new widgets/features in the listview for better UI.
      https://www.odoo.com/web#id=2195254&action=327&model=project.task&view_type=form&cids=1&menu_id=4720
      
      
      
      The goal of the current task is to use those to upgrade our listviews
      
      Specification
      =============
      
      Below are change requests on various listviews.
      
      Remove decoration-bf="message_needaction==True" from every listview in every module.
      
      PRODUCT - stock.view_stock_product_template_tree (product template)
      
      remove all decorations from <tree>
      set the following decorations on 'virtual_available' and 'qty_available'
      decoration-danger="virtual_available&lt;0"
      decoration-warning="virtual_available==0"
      also set decoration-bf on 'virtual_available'
      apply the same modifications on stock.view_stock_product_tree for product variants
      
      SUBSCRIPTION - sale_subscription.sale_subscription_view_list
      
      remove all decorations from <tree>
      'stage_id' field
      set <field name="stage_id" widget="badge" decoration-info="stage_category == 'draft'" decoration-success="stage_category == 'progress'"/>
      'recurring_next_date' field
      set <field name="recurring_next_date" string="Next Invoice" widget="remaining_days" attrs="{'invisible': [('stage_category', '!=', 'progress')]}"/>
      set decoration-bf on 'code' and 'recurring_total_incl'
      move 'percentage_satisfaction' before 'recurring_total_incl'
      set widget="many2one_avatar_user" on 'user_id'
      add <field name="activity_ids" widget="list_activity"/> after 'user_id'
      
      ELEARNING - website_slides.slide_channel_view_tree
      
      set widget="many2one_avatar_user" on 'user_id'
      'enroll' field
      set <field name="enroll" widget="badge" decoration-success="enroll == 'public'" decoration-info="enroll == 'invite'" decoration-warning="enroll == 'payment'"/>
      
      POS - point_of_sale.view_pos_order_tree
      
      remove all decorations from <tree>
      'state' field
      make visible and move it at the end of the view
      set <field name="state" widget="badge" decoration-info="state == 'draft'" decoration-success="state not in ('draft','cancel')"/>
      set decoration-bf on 'name'
      
      APPRAISAL - hr_appraisal.view_hr_appraisal_tree
      
      'state' field
      set <field name="state" widget="badge" decoration-info="state in ('new','pending')" decoration-success="state == 'done'"/>
      'date_close' field
      set <field name="date_close" widget="remaining_days" attrs="{'invisible': ['|',('state','=','done'),('state','=','cancel')]}"/>
      
      PAYMENT - account.view_account_payment_tree
      
      remove all decorations from <tree>
      'state' field
      set <field name="state" widget="badge" decoration-info="state == 'draft'" decoration-success="state == 'posted'"/>
      move 'company_id' before 'amount'
      
      CONTRACT - hr_contract.hr_contract_view_tree
      
      remove all decorations from <tree>
      'state' field
      set <field name="state" widget="badge" decoration-info="state == 'draft'" decoration-warning="state == 'close'" decoration-success="state == 'open'"/>
      set widget="many2one_avatar_employee" on 'employee_id'
      
      PAYSLIPS - hr_payroll.view_hr_payslip_tree
      
      remove all decorations from <tree>
      'state' field
      set <field name="state" widget="badge" decoration-info="state == 'draft'" decoration-warning="state == 'verify'" decoration-success="state in ('done','paid')"/>
      set decoration-bf on 'number' and 'net_wage'
      move 'company_id' before 'basic_wage'
      set widget="many2one_avatar_employee" on 'employee_id'
      
      SURVEY - survey.survey_tree
      
      'state' field
      set <field name="state" widget="badge" decoration-info="state == 'draft'" decoration-success="state == 'open'"/>
      
      APPLICATION - hr_recruitment.crm_case_tree_view_job
      
      set widget="date' on 'create_date'
      set widget="priority' on 'priority'
      set widget="many2one_avatar_user" on 'user_id'
      
      TIME OFF - hr_holidays.hr_leave_view_tree
      
      remove all decorations from <tree>
      'state' field
      set <field name="state" widget="badge" decoration-info="state == 'draft'" decoration-warning="state in ('confirm','validate1')" decoration-success="state == 'validate'"/>
      apply the same changes in hr_holidays.hr_leave_allocation_view_tree
      
      closes odoo/odoo#51305
      
      Taskid: 2256589
      Related: odoo/enterprise#10614
      Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
      7b714a3b
  28. May 13, 2020
    • Vishnu Thuletiya's avatar
      [IMP] various: Use the new avatar widget in kanban view · 9a830432
      Vishnu Thuletiya authored
      The purpose of task is to update the 'user/employee avatar' to the new
      widget in all the kanban view across all modules.
      The below new widget are introduced for avatar:
       - many2one_avatar_user (for user_id fields)
       - many2one_avatar_employee (for employee_id fields)
      which displays the avatar (i.e. picture) of a user/employee in front
      of his name and clicking on the avatar will open a chatbox to message
      that specific user/employee.
      
      So in this commit, For each kanban view with a user or employee avatar,
      replaced it by the field with the new 'many2one_avatar' widget.
      
      TaskID: 2244928
      Related Enterprise PR: https://github.com/odoo/enterprise/pull/10420
      
      
      
      closes odoo/odoo#50789
      
      Closes: #50789
      Related: odoo/enterprise#10420
      Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
      9a830432
  29. May 08, 2020
    • Benjamin Frantzen (bfr)'s avatar
      [IMP] customer ratings flow improvements · e4a4ffb9
      Benjamin Frantzen (bfr) authored
      - Rename the 'Use Rating on Project' feature into 'Customer Ratings'
      - Rename the 'Set Email Template to Stages' link to 'Set a Rating Email Template on Stages'
      - Add an optional list view for the Stages menu
      - display warning if the rating_template_id field is set and if one of the selected project_ids doesn't have the rating_status field set to true
      - Project form view revamp
      - rename the '% on tasks' stat button into 'Customer Satisfaction'
      - Remove the 'no option' for the rating frequency field because it is required
      - project form : Add a 'Go to Website' stat button
      - Project dashboard: remove the 'Customer Ratings' menu item in more
      - Ratings page: the 'Last 30 days' filter include ratings from today
      - remove the Appointment / Helpdesk Customer Satisfaction / Live Support menu items
      
      TASK ID : 1251
      e4a4ffb9
  30. May 05, 2020
    • Aaron Bohy's avatar
      [IMP] *: update list views · 900d1628
      Aaron Bohy authored
      This commit adapts several views to make them use newly defined
      widgets, the new decoration-xxx mechanism on fields, and to adapt
      them to the new design of buttons.
      
      Part of task 2195254
      900d1628
  31. Apr 28, 2020
  32. Apr 27, 2020
    • fja-odoo's avatar
      [IMP] website, *: warn user about outdated blocks · 11c60739
      fja-odoo authored
      * = mass_mailing, web_editor, website_crm, website_event, website_form,
      website_forum, website_hr_recruitment, website_mail_channel,
      website_mass_mailing, website_sale, website_slides
      
      When an outdated snippet's option are activated we display a warning
      in the left panel that inform the user about the potential
      malfunctions.
      
      To do so the snippet's template key is added to the snippet as
      data-snippet.
      If a snippet is "t-call" inside another snippet, it will need to use
      t-snippet-call instead of t-call to have the key on himself.
      
      Those unique keys are used on snippet selection to retrieve the
      snippet's version in the left panel and compare it with the currently
      selected snippet's version. Versions are describe with data-vcss,
      data-vjs and data-vxml. If a snippet's key is not in the left panel we
      consider that snippet as outdated.
      
      Added some tests to ensure that t-snippet and t-snippet-call really have
      their template key as data-snippet
      
      Adapted the views to the data-snippet changes adding
      data-snippet="tmpl_key".
      
      Part of: https://github.com/odoo/odoo/pull/44569
      
      
      task-2189669
      
      closes odoo/odoo#50254
      
      X-original-commit: 28a6cd49b6e87b75c2e70771e241c41778bf9e87
      Related: odoo/enterprise#10236
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      11c60739
Loading