1. 30 Dec, 2024 1 commit
    • Titouan Soulard's avatar
      erp5_xhtml_style: report error messages on clone as errors · 5d240501
      Titouan Soulard authored
      The script `Base_createCloneDocument` was made to be user-friendly, reporting
      nice errors instead of throwing when a problems is detected. These errors are
      displayed using the `portal_status_message` parameter of `Base_redirect`, which
      looks like a warning on XHTML-style, but appears green with RenderJS.
      
      This commit adds an optional parameter `portal_status_level` to all calls to
      `Base_redirect` which are actually errors, so that they also look like a
      warning or error (orange background) on RenderJS. The behaviour in XHTML-style
      says identical.
      
      /cc @romain @vpelletier
      5d240501
  2. 25 Dec, 2024 1 commit
  3. 23 Dec, 2024 2 commits
    • Titouan Soulard's avatar
      erp5_core: fix `TypeError` on raise in `Base_edit` · a4274276
      Titouan Soulard authored
      String value raised with `ValueError` had an extra `%s` at the end, hence
      raising another error when formatting:
      
      > TypeError: not enough arguments for format string
      
      This commit simply removes the extra formatting character, since I could not
      guess what should have been printed here.
      a4274276
    • Titouan Soulard's avatar
      erp5_trade: fix method `Movement_zGetPackedQuantity` · 4aec00c2
      Titouan Soulard authored
      The ZSQLMethod was using a wrong table `movement` instead of the `stock` table,
      hence throwing errors. This commit makes it use the right table, by adding a
      filter on `node_uid`, taking into account the structure of the new table.
      
      /reviewed-by @jerome
      /reviewed-on !2030
      4aec00c2
  4. 19 Dec, 2024 2 commits
  5. 18 Dec, 2024 4 commits
  6. 17 Dec, 2024 1 commit
  7. 14 Dec, 2024 4 commits
  8. 13 Dec, 2024 7 commits
  9. 06 Dec, 2024 1 commit
  10. 21 Nov, 2024 1 commit
  11. 20 Nov, 2024 2 commits
  12. 18 Nov, 2024 2 commits
  13. 15 Nov, 2024 1 commit
  14. 14 Nov, 2024 1 commit
    • Nicolas Wavrant's avatar
      erp5_pdm: speed up the Stock view of products · d1c141da
      Nicolas Wavrant authored
      By pre-fetching some catalog entries to retrieve objects UIDs that can directly
      be used in the inventory query, to avoid needless (costly) joins and hinting
      the catalog to use the resource_section_node_uid index of the stock table.
      d1c141da
  15. 12 Nov, 2024 9 commits
  16. 11 Nov, 2024 1 commit