1. 28 May, 2024 22 commits
  2. 27 May, 2024 2 commits
  3. 22 May, 2024 4 commits
  4. 20 May, 2024 8 commits
  5. 19 May, 2024 2 commits
    • Jérome Perrin's avatar
      core: make Base_edit raise in case of wrong matrixbox keys · b4227bb9
      Jérome Perrin authored
      This should not happens, but if this happens we should not just return
      in the middle of the loop, because this returned value is not used,
      so we would just silently edit partially.
      b4227bb9
    • Jérome Perrin's avatar
      Security of tester accessors · 63dcec59
      Jérome Perrin authored
      The first commit of this merge request was introduced for zope4py3 branch but it revealed issues on py2 as well, i.e. we don't have roles in auto-generated tester methods.
      
      ```
      ======================================================================
      FAIL: test_method_protection (testSecurity.TestSecurity)
      This test will list all implicitly Public methods in any objects in ZODB.
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/(SR)/parts/erp5/Products/ERP5/tests/testSecurity.py", line 113, in test_method_protection
          self.fail(message)
      AssertionError: 
      The following 7 methods have a docstring but have no security assertions.
      	/(SR)/parts/erp5/product/ERP5Form/PreferenceTool.py:65 isPreferredVcsPushMode
      	/srv/slapgrid/slappart19/t/eiy/soft/8a7759fd7b65b20d9f87713605745d05/parts/erp5/product/ERP5Type/Accessor/AcquiredProperty.py:217 hasTelephoneValidationState
      	/(SR)/parts/erp5/product/ERP5Type/Accessor/Base.py:219 hasViewFormIdList
      	/(SR)/parts/erp5/product/ERP5Type/Accessor/Constant.py:94 isWebDocumentType
      	/(SR)/parts/erp5/product/ERP5Type/Accessor/Content.py:224 hasImage
      	/(SR)/parts/erp5/product/ERP5Type/Accessor/ContentProperty.py:283 hasImageWidthList
      	/(SR)/parts/erp5/product/ERP5Type/Accessor/Translation.py:233 hasFrTranslatedTitle
      
      ----------------------------------------------------------------------
      ```
      
      See merge request !1911
      63dcec59
  6. 17 May, 2024 2 commits
    • Jérome Perrin's avatar
      accounting: fix error in Journal report with lines with an acquired node · 2ca25775
      Jérome Perrin authored
      If a transaction is selected but instead of having accounts as
      source/destination on lines it acquires the organisation set as
      source/destination on the transaction, this causes an AttributeError
      getGapList when trying to use this organisation as an account.
      
      To fix this, adjust the getMovementHistoryList parameters to select only
      lines using accounts, by passing node_uid, which is O(n) on the number
      of accounts, but the number of accounts is not supposed to be too large
      and other reports also do this assumption.
      2ca25775
    • Jérome Perrin's avatar
      testBusinessTemplate: cancel failed activites at end of test · 13526eb5
      Jérome Perrin authored
      This prevents one failing test to make all subsequent tests to fail
      13526eb5