1. 04 Jul, 2024 2 commits
    • Titouan Soulard's avatar
      erp5_core: fix FIFO stock value calculation on null total price · d53e053d
      Titouan Soulard authored
      When creating two simulation movements: one adding items in a stock for a
      non-zero price, and another adding items in the same stock for a zero price,
      the second movement is recorded in the `stock` SQL table with a NULL
      `total_price`. This creates issues when computing stock value using the FIFO
      method: the total stock value would show as zero in the case described above.
      
      This behaviour is due to operations on NULLs in SQL propagating the NULL value
      (eg. 1 + NULL = NULL), which is not what is expected when computing stocks.
      This commit treats all NULL prices as zeroes when requesting a stock value
      using the FIFO method, which fixes calculation in a right way.
      d53e053d
    • Titouan Soulard's avatar
  2. 24 Jun, 2024 1 commit
  3. 20 Jun, 2024 1 commit
  4. 19 Jun, 2024 4 commits
  5. 18 Jun, 2024 3 commits
  6. 17 Jun, 2024 1 commit
  7. 11 Jun, 2024 2 commits
  8. 09 Jun, 2024 2 commits
    • Jérome Perrin's avatar
      d885e20e
    • Jérome Perrin's avatar
      oauth_google_login: reimplement with oauthlib/requests · c3488a67
      Jérome Perrin authored
      Because the librairies used here were never ported to python3.
      
      Notable changes:
      
        - ERP5Site_createGoogleUserToOAuth is dropped
        - internal API changed radically, so customizations made by overriding
          scripts are broken.
        - the core logic is now implemented in a connector class (still in
          portal_oauth for simplicity, but it would be simpler to move it to
          portal_web_services)
      
      No changes required in the google console, the redirect uri is still
      ERP5Site_receiveGoogleCallback
      c3488a67
  9. 06 Jun, 2024 3 commits
  10. 05 Jun, 2024 6 commits
  11. 04 Jun, 2024 6 commits
  12. 03 Jun, 2024 6 commits
  13. 31 May, 2024 3 commits
    • Jérome Perrin's avatar
      simple fixes from python3 port · fe7a66eb
      Jérome Perrin authored
      See merge request nexedi/erp5!1941
      fe7a66eb
    • Jérome Perrin's avatar
      administration,core: wrong location when reporting pylint errors · 0b8b8475
      Jérome Perrin authored
      In Check Source Code report on business template and CodingStyle tests,
      the lines were off by 1 and column off by 2 for python scripts.
      0b8b8475
    • Jérome Perrin's avatar
      ERP5TypeTestCase: rework default manager password generation · 445e8fa8
      Jérome Perrin authored
      The default manager user (ERP5TypeTestCase) now have a random password
      generated at the beginning of test. The password is stored as a class
      attribute of the test case instance.
      Many tests have been updated to not generate manager user and use the
      existing one instead. When tests need to create users (for example
      users in the root acl_users), we try to give them a random password and
      to delete the users afterward.
      
      For functional tests, the approach is that ERP5TypeFunctionalTestCase
      sets cookies with manager username and password before running zelenium
      tests, so that in case tests want to log in again as manager, they can
      read the username and password from cookies.
      
      Another significant changes is that we no longer have the same user in
      ERP5/acl_users and /acl_users, some tests were logging in as the root
      user in ways that never seemed intentional.
      
      This also revealed (through test_manager_actions_on_portal from
      testERP5Core) that some tests were running with a user without all the
      expected permissions and the "Manager Components" actions was not
      visible for the default manager user. Fixing this also revealed that
      two actions ("Manage Components" and "Manage Callables") had the same
      priority, so the later was modified to use a different priority.
      445e8fa8