Skip to content
Snippets Groups Projects
  1. Nov 27, 2022
  2. Nov 25, 2022
  3. Nov 24, 2022
  4. Nov 20, 2022
  5. Nov 13, 2022
  6. Oct 30, 2022
  7. Oct 23, 2022
  8. Oct 16, 2022
  9. Oct 10, 2022
    • Xavier-Do's avatar
      [IMP] tests: add generic Basecase.start for patch · 7d5a193d
      Xavier-Do authored
      
      Using patcher.start() can easily lead to incorrect cleanup.
      -> after a copy paste, patcher is working, but stop is forgotten
      -> stop is present, but won't be called if something fails during the
      test
      
      This commit add an utility `start(patcher)` to always have the add
      cleanup.
      
      Using a standard way to start the patcher with an automated addCleanup
      should prevent this kind of mistake. This is why this commit also
      replaces all valid patch.start() (followed immediately by a addCleanup)
      
      closes odoo/odoo#101971
      
      Related: odoo/enterprise#32529
      Signed-off-by: default avatarChristophe Monniez (moc) <moc@odoo.com>
      7d5a193d
  10. Oct 09, 2022
  11. Oct 04, 2022
  12. Oct 02, 2022
  13. Sep 30, 2022
    • Dossogne Bertrand's avatar
      [IMP] mail, various: improve mail template usability · dfa86734
      Dossogne Bertrand authored
      
      Allow our users to modify mail template more easily
      
      - make the list accessible from the settings
      - give them a link to update relevant views to update header/footer
      - make the list and form of templates more readable
      - add a description on templates, allowing to describe their usage
      
      In order to better filter templates, a new category field is added that
      is computed based on active flag, description being set and the template
      having an xml ID. Master templates are active, with a description and an
      xml ID.
      
      Update master data to add description on some templates.
      
      task-2944770
      
      closes odoo/odoo#101399
      
      Related: odoo/enterprise#31916
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      dfa86734
  14. Sep 25, 2022
  15. Sep 20, 2022
  16. Sep 15, 2022
    • Thibault Delavallée's avatar
      [FIX] gamification: fix usage of message_post_with_view · a0677915
      Thibault Delavallée authored
      Gamification code is currently using ``message_post_with_view`` a bit weirdly
      
        * on a not mail-thread enabled record (using model / res_id propagated to
          composer which allows it);
        * using mass mail composition mode (aka creating directly mail.mail);
        * based on a template;
      
      This is basically achieved with ``template.send_mail()`` method.
      
      Task-2710804 (Mail: Clean MailThread API)
      
      Part-of: odoo/odoo#100137
      a0677915
  17. Sep 01, 2022
    • Bruno Boi's avatar
      [REF] web,*: raw_value as ISO8601 in kanban templates · 78ac0865
      Bruno Boi authored
      This commit will make date(time) raw_value an ISO string
      instead of a native JS Date.
      
      - Before this commit
      In kanban templates:
        - the raw_value property of a record's date/datetime field is
          a native JS Date object.
      
      The problem with raw_value is that JS Dates toString
      method depends on the system locale and timezone.
      In the code base, the usage of raw_value for date/datetime fields
      usually parse the raw_value into a luxon DateTime object
      in order generally to display it in a specific format, or in order
      to compare it to another luxon DateTime object (e.g. the now instant).
      
      - After this commit
      The raw_value property of a record's date/datetime field
      has become an ISO8601 string, instead of native JSDate toString
      format (which I recall depends on system's locale and timezone).
      The ISO8601 format is easier to work with.
      
      Part-of: odoo/odoo#98980
      78ac0865
  18. Aug 10, 2022
  19. Aug 02, 2022
    • Fabien Pinckaers's avatar
      [IMP] cleanup of help messages in all modules · 3363e55c
      Fabien Pinckaers authored
      
      This commit aims at removing unuseful help message to:
      1/ reduce translators work, to focus on more useful translations
      2/ not sending unuseful information in load_views
      3/ reduce help message to useful messages, so that we can mark
         fields having a tooltip in the future UI.
      4/ some cleanup of existing messages too
      
      The main use cases:
      - REMOVED: help redundant with the field name, providing no extra info
      - MOVED TO COMMENT: technical help messages, that should not be in UX
      
      closes odoo/odoo#97279
      
      Signed-off-by: default avatarFabien Pinckaers <fp@odoo.com>
      3363e55c
  20. Jul 07, 2022
  21. Jun 30, 2022
    • Aaron Bohy's avatar
      [REF] *: adapt code to new kanban view · 4f984568
      Aaron Bohy authored
      This commit makes various adapations in addons with respect to
      the introduction of the owl kanban view. Mainly, some selectors
      in scss and in tests needed to be adapted. Moreover, in some tests
      that we haven't adapted yet, we must ensure that legacy form and
      list views are still used (useLegacyViews).
      
      It also contains some adaptations in kanban templates, e.g. the
      replacement of moment by luxon, the removal of underscore...
      
      Part-of: odoo/odoo#92475
      4f984568
  22. Jun 10, 2022
  23. May 30, 2022
  24. May 25, 2022
    • Géry Debongnie's avatar
      [REF] *: remove some kanbanrecord .includes · 8313a66a
      Géry Debongnie authored
      The kanban view was recently improved to add the support of 'action' and
      'type' attributes on the kanban arch.  This commit takes advantage of
      that change to simplify a few views in various addons.
      
      Part-of: odoo/odoo#92071
      8313a66a
  25. May 02, 2022
  26. Apr 22, 2022
  27. Mar 02, 2022
    • Vincent Schippefilt's avatar
      [IMP] *: use _read_group instead of read_group · 05fc9a67
      Vincent Schippefilt authored
      
      This commit modifies most of the usages of read_group and uses
      _read_group instead. _read_group doesn't join automatically on the
      many2one fields when no order_by is specified, making it more performant
      when the "name" of the many2one is not relevant, which is the case for
      most back-end cases
      
      closes odoo/odoo#84908
      
      Task-id: 2479334
      Related: odoo/enterprise#24877
      Signed-off-by: default avatarRaphael Collet <rco@odoo.com>
      05fc9a67
  28. Feb 12, 2022
    • Fabien Pinckaers's avatar
      [IMP] speed up load_menus() by using SVG icons instead of png · 10a5796d
      Fabien Pinckaers authored
      
      Reduces load_menus answer size by 32% (between 20kb and 200kb savings
      for the initial loading of the backend, depending on the number of apps
      installed). Support for SVG icons in the web client for menus/apps.
      
      Reduced PNG icons for apps list (8 bits PNG instead of 24 as our icons
      don't need more colors as they are flat designs)
      
      closes odoo/odoo#84280
      
      Related: odoo/enterprise#24200
      Signed-off-by: default avatarFabien Pinckaers <fp@odoo.com>
      10a5796d
  29. Jan 19, 2022
  30. Dec 07, 2021
  31. Nov 10, 2021
    • Thibault Delavallée's avatar
      [IMP] gamification: remove m2m display · 07c872d6
      Thibault Delavallée authored
      PURPOSE
      
      Gamification display is slow when being heavily used. Indeed the m2m towards
      users is used in kanban and form views, leading to a huge data fetch when
      being used in production environment with lots of users.
      
      SPECIFICATIONS
      
      Remove user_ids m2m from views. Indeed in some heavily used DBs you may have
      more than 10K records in user_ids, leading to a huge m2m tags to display.
      
      Replace it by an optimized count, used in
      
        * form view: as a stat button redirecting to participants of a challenge;
        * kanban view: a line (replacing the 11 first avatars) redirecting to
          participants of a challenge;
      
      Task-2678295
      
      Part-of: odoo/odoo#79599
      07c872d6
    • Thibault Delavallée's avatar
      [MOV] gamification: reorder and rename data files · 3fe3c7a2
      Thibault Delavallée authored
      Purpose of this commit is to rename and reorder data by main model. It
      allows to better understand module organization and find data one may have
      to update.
      
      Task-2678295
      
      Part-of: odoo/odoo#79599
      3fe3c7a2
    • Thibault Delavallée's avatar
      [MOV] gamification: reorder and rename model files · 0a03960e
      Thibault Delavallée authored
      Purpose of this commit is to rename and reorder models by main model. It
      allows to better understand module organization and find models one may have
      to update.
      
      Task-2678295
      
      Part-of: odoo/odoo#79599
      0a03960e
    • Thibault Delavallée's avatar
      [MOV] gamification: move menus definition · 4d7efe41
      Thibault Delavallée authored
      Purpose of this commit is to have all gamification menus defined in a single
      file. It helps reorganizing a module TOC (menus) when doing some b2b like
      on an app. Otherwise menus are split across several files and finding them
      and keeping them organized is not easy.
      
      Task-2678295
      
      Part-of: odoo/odoo#79599
      4d7efe41
    • Thibault Delavallée's avatar
      [MOV] gamification: reorder and rename view files · 2ae9d590
      Thibault Delavallée authored
      Purpose of this commit is to rename and reorder views by main model. It
      allows to better understand module organization and find views one may have
      to update.
      
      Task-2678295
      
      Part-of: odoo/odoo#79599
      2ae9d590
    • Thibault Delavallée's avatar
      [IMP] mail, various: rename custom_layout / notif_layout context usage · f9dbd387
      Thibault Delavallée authored
      RATIONALE
      
      Currently we can specify email used for notification layouting through context
      use in mail composer. It is then propagated to message_post, stored on
      mail.message and used to encapsulate emails sent based on posted messages.
      
      SPECIFICATIONS
      
      On template model: rename ``notif_layout`` parameter of ``send_mail`` to
      ``email_layout_xmlid`` to be coherent with naming used in other parts of the
      code. Moreover it better indicates we expect an xml id.
      
      On rating model: rename ``notif_layout`` parameter of ``rating_send_request``
      to ``email_layout_xmlid``, for the same reasons as above.
      
      In various wizards: support ``email_layout_xmlid`` context key when no field
      is available, notably because this is still done manually in some wizards
      like survey invite. Keep a fallback on ``notif_layout`` but remove support of
      ``custom_layout`` deprecated since quite a long time.
      
      Task-2621326 (Mail: add 'view' button in 'light notification template')
      Task-2647302 (Mail: add layout field in composer)
      
      Part-of: odoo/odoo#76418
      f9dbd387
Loading