Skip to content
Snippets Groups Projects
  1. Apr 27, 2023
    • xO-Tx's avatar
      [FIX] website, tools: make select options translatable · 57d7e75b
      xO-Tx authored
      
      Steps to reproduce:
      
      - Go to a website page > Add a 'Form' block > Add a new 'Selection'
      field.
      - Go to the page (in 'edit_translations' mode) > The selection field
      options are not translatable.
      
      The goal of this commit is to make the select options translatable
      by adding an intermediate `.o_translation_select` element.
      
      This element will handle option's text translations from the linked
      `<select/>`. The final values are copied to the original element
      right before save.
      
      opw-3233360
      
      closes odoo/odoo#117519
      
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      57d7e75b
  2. Apr 23, 2023
  3. Apr 16, 2023
  4. Apr 09, 2023
  5. Mar 26, 2023
  6. Mar 22, 2023
    • Benjamin Vray's avatar
      [FIX] website: fix navbar position and alignment options · 3eaab4e8
      Benjamin Vray authored
      This commit fixes several bugs with the navbar and the header templates:
      
      - The "right" alignment options didn't work with most headers. This was
      due to a missing CSS rule.
      
      - The "right/left" alignment option was reversed with the "vertical"
      header template.
      
      - The navbar collapse style was broken with the "Hamburger Full" header
      template.
      
      - This commit hides the alignment options in cases where they have no
      effect ("Hamburger Full" or "Magazine" header template + not
      "off-canvas"). It also changes the options label to "Mobile Alignment"
      when the alignment only impacts the mobile view (since this commit =>
      [1], the "alignment" option no longer only impacts the mobile view,
      depending on the templates, it can also impact the "desktop" view).
      
      - The text section of the "Magazine" header template had no background
      color (It was transparent after scrolling the page).
      
      - The "off-canvas" navbar was not positioned correctly with several
      header templates (e.g. "Boxed" header template).
      
      [1]: https://github.com/odoo/odoo/commit/2a1aa808e939eeaa3caec6a1a82e19f023f1d010
      
      
      
      opw-2951315
      
      closes odoo/odoo#106764
      
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      3eaab4e8
  7. Mar 19, 2023
  8. Mar 12, 2023
  9. Mar 05, 2023
  10. Feb 26, 2023
  11. Feb 19, 2023
  12. Feb 13, 2023
  13. Feb 05, 2023
  14. Jan 29, 2023
  15. Jan 23, 2023
  16. Jan 22, 2023
  17. Jan 15, 2023
  18. Jan 08, 2023
  19. Jan 01, 2023
  20. Dec 25, 2022
  21. Dec 18, 2022
  22. Dec 11, 2022
  23. Dec 04, 2022
  24. Nov 27, 2022
  25. Nov 20, 2022
  26. Nov 13, 2022
  27. Nov 09, 2022
    • qsm-odoo's avatar
      [FIX] website: properly warn users of Google API errors · a5282701
      qsm-odoo authored
      Before this commit, when adding a google map snippet in the DOM, the
      user was asked for its API key if not already configured, thanks to an
      user-friendly dialog. However, in the case it was misconfigured (while
      the editor dialog prevents some misconfiguration, configuration via the
      backend allow any random key to be given), the UX was terrible: the
      google map is simply removed without any notification.
      
      Misconfiguration can be:
      - Invalid API key
      - "Maps JavaScript API", "Places API" or "Maps Static API" not enabled
      - Billing not enabled
      
      Now notifications/messages warn about those things and reopens the key
      configuration dialog, which contains links to the gmap API documentation
      and now more information.
      Hopefully, this can be improved even further later. Indeed, this is
      still not perfect as there is no reliable way to understand google
      responses. E.g. even with the three mentioned API and billing enabled,
      sometimes the google map API still returns errors indicating "not
      enabled APIs" but it cannot be reproduced reliably. During my test it
      was systematic for 15min at some point but now there is none, ever. Like
      if there was a delay after enabling an API on the google console before
      it stops sending errors... although the API works immediately.
      
      Notice that in 15.0, this snippet is shown in debug mode only and we
      encourage users to use the new "Map" snippet which does not require any
      configuration.
      
      opw-2976261
      
      Part-of: odoo/odoo#105072
      a5282701
  28. Nov 06, 2022
  29. Oct 30, 2022
  30. Oct 26, 2022
  31. Oct 23, 2022
  32. Oct 21, 2022
    • qsm-odoo's avatar
      [FIX] web_editor, website: restore control over image gallery height · 25285c82
      qsm-odoo authored
      
      This commit restores the possibility to control the height of the
      image gallery snippet. This was indeed possible in <= 11.0 for all
      snippets but it was removed in 12.0 as controlling the height via inner
      paddings seemed enough and better (as responsive). For the image gallery
      snippet however, this was a big regression as the height is forced to
      70% of the current screen height on drop and the images inside are
      displayed depending on that forced height. Trying to control via
      paddings was not leading to the wanted effect.
      
      This restores the possibility in 14.0 as 12.0 and 13.0 are now
      deprecated. This is following a customer issue where not having the
      ability to control the height is actually confusing as the user edits
      its website across different screens and the height is forced to 70%
      height of the screen used at the time of edition. With an height input
      in the panel, the confusion is gone.
      
      Note: this also introduces a `forceStyle` parameter for the
      `selectStyle` option to be able to force the inline style a widget
      controls. Indeed, without it, the system is "smart" and tries not to
      force inline style when it is not needed (if you try to force red on
      something that is naturally red (thanks to a CSS rule for example), it
      won't be forced). Here, this was leading to an issue when trying to set
      the height:
      
      - Current height is 700px
      - There is some code that forces a min-height on all carousel items so
        that they are the same height. As the gallery image dimensions depend
        on the block forced height (this is how the snippet work), the forced
        min-height are related to that forced height (something like 680px).
      - You focus the height input and type 800px
      - The same code forces new min-height on all carousel item (something
        like 780px).
      - You un-focus the height input, the system tries to re-set 800px (which
        is already set)... it ends up removing it as it thinks that setting
        that height is not needed as the snippet is now "naturally" 800px tall
        thanks to the carousel items' min-heights.
      
      opw-2838774
      
      closes odoo/odoo#103694
      
      Signed-off-by: default avatarRomain Derie (rde) <rde@odoo.com>
      25285c82
  33. Oct 09, 2022
  34. Oct 02, 2022
  35. Sep 25, 2022
  36. Sep 18, 2022
  37. Sep 11, 2022
  38. Sep 04, 2022
  39. Aug 28, 2022
  40. Aug 21, 2022
Loading