Skip to content
Snippets Groups Projects
  1. Sep 15, 2023
  2. Apr 26, 2022
    • Patrick Hoste's avatar
      [IMP] portal: add informative button to internal notes on portal chatter · 705af2c2
      Patrick Hoste authored
      
      PURPOSE
      
      Before this commit, when the chatter was displayed on a portal page (with
      the customer preview button) one could see the internal notes with a button
      for toggling his visibility... which was ineffective because a portal user
      could never see internal notes and on the opposite internal users could
      always see them. This commit adds another informative (disabled) button for
      internal notes.
      
      SPECIFICATION
      
      Adds a 'is_message_subtype_note' param on the message in the
      _portal_message_format method.
      
      LINKS
      
      Task-2817892
      
      closes odoo/odoo#89697
      
      X-original-commit: f74434c6
      Signed-off-by: default avatarWarnon Aurélien (awa) <awa@odoo.com>
      Signed-off-by: default avatarHoste Patrick (pko) <pko@odoo.com>
      705af2c2
  3. Mar 24, 2022
    • Denis Ledoux's avatar
      [ADD] portal: manage api keys in portal · 6baada5e
      Denis Ledoux authored
      
      Add the possibility for portal users to manage API keys
      in the frontend portal interface.
      
      - Allow for portal users to manage their API keys if the system parameter
        `portal.allow_api_keys` is set.
        A settting in `res.config.settings` is added in order
        to enable or disable the feature (to add/remove the system parameter)
        through a compute field,
        to avoid adding a new database column in standard
        (as this revision targets stable 15.0).
        The setting appear only in debug mode.
      
      - Display the API keys in the portal in debug mode only
        (as in the back-end for regular users, in their profile)
      
      - The flow in the frontend is a mimic of the flow from the backend,
        the wording and the look and feel is from the back-end.
      
      closes odoo/odoo#85682
      
      Signed-off-by: default avatarDenis Ledoux (dle) <dle@odoo.com>
      6baada5e
  4. Oct 05, 2021
  5. Sep 14, 2021
  6. Jul 12, 2021
  7. May 11, 2021
  8. Feb 19, 2021
  9. Jan 08, 2021
    • nie's avatar
      [FIX] portal: Due in %d days is not translated · ad59eff4
      nie authored
      Steps:
      - Install Invoicing and load French
      - Go to Invoicing
      - Click an invoice due in the future
      - Click Preview
      - Switch the preview to French by modifying the URL like this: example.com/my/invoices/6 -> example.com/fr_FR/my/invoices/6
      
      Bug:
      "Due in %d days" is still displayed in English. The rest of the page is in French.
      
      Explanation:
      This is due to two things:
      1. `mail` and `portal` are both installed and we cannot have more than one `code` translation of a source [1]. Since `mail` is loaded before, alphabetically, `portal` doesn't add the duplicated translations with its own module name. When loading a web page, only the modules returned by `_get_translation_frontend_modules_domain()` are sent to the frontend. `mail` is not one of them and the duplicated translations are not sent. Since sending all the `mail` translations is overkill, this commit is modifying the format string. This won't change the text outcome, but will make the new sources unique and make the backend send these translations to the frontend.
      2. Translations in `portal_sidebar.js` are queried before the translation DB [2] is made. This results in an empty array and `_t()` returns the source. `session.is_bound` will wait until the app is fully loaded before querying.
      
      [1] https://github.com/odoo/odoo/blob/ad2d96db8ad3e1fd7af2edda218fc34c0c1d259a/odoo/addons/base/models/ir_translation.py#L290
      [2] https://github.com/odoo/odoo/blob/0de069b8ca9fb005ba5b076984f5677de25889ee/addons/web/static/src/js/core/translation.js#L51
      
      
      
      opw:2421501
      
      closes odoo/odoo#64263
      
      X-original-commit: 118d79192cf0fc923a121745c78e6dd0da563df0
      Signed-off-by: default avatarbackspac <backspac@users.noreply.github.com>
      ad59eff4
  10. Dec 11, 2020
  11. Sep 29, 2020
  12. Sep 01, 2020
  13. Dec 16, 2019
  14. Oct 07, 2019
  15. Sep 24, 2019
  16. Aug 13, 2019
  17. Aug 26, 2019
  18. Aug 08, 2019
  19. Jul 08, 2019
  20. Jun 12, 2019
  21. Mar 20, 2019
  22. Jan 25, 2019
  23. Jan 15, 2019
  24. Jan 16, 2019
  25. Dec 11, 2018
  26. Sep 21, 2018
  27. Sep 18, 2018
  28. Aug 24, 2018
  29. Aug 02, 2018
  30. Jul 27, 2018
  31. Jun 25, 2018
  32. Mar 22, 2018
  33. Oct 02, 2017
  34. Sep 20, 2017
  35. Jul 18, 2017
    • Thibault Delavallée's avatar
      [REM] portal: remove pot file probably reintroduced at forward-port · dc2575b5
      Thibault Delavallée authored
      Commit 3e310515 removed the portal module as its feature are completely
      replaced by front-end customer portal or base portal user support in various modules.
      
      However the portal pot file, kicked out of Odoo by the door, tried
      to come back through the window. This commit closes the window and
      puts this file out again. Let us hope it does not make holes in
      the garden or barks at neighbors.
      dc2575b5
  36. May 29, 2017
  37. Feb 15, 2017
  38. Sep 07, 2016
  39. Aug 22, 2016
  40. Aug 19, 2016
Loading