1. 01 Jun, 2020 2 commits
    • Jérome Perrin's avatar
      BusinessTemplate: tolerate broken objects when updating their containers · 31f8dfe2
      Jérome Perrin authored
      Business template have some logic to keep uids when updating objects:
      during installation, when an object is modified, business template first
      remember the uids for this object and all its sub-objects,
      replaces this object with the new version then recursively set the uid
      on updated objects, so that updating an ERP5 document by business
      template does not change its uid because this would break catalog.
      
      When an object containing sub-objects is updated, it becomes a new
      object in ZODB and sub-objects of the previous object are set as child
      of the new object. This works even if the case of sub-objects being
      instances of ZODB Broken class, except that the step where we restore
      the uid fail as it's not allowed to modify a broken object.
      
      Instead of unconditionnally setting the sub-objects uids, check that we
      actually need to set it, because if it's already the expected value then
      we don't need to touch the object.
      31f8dfe2
    • Jérome Perrin's avatar
      erp5_core_test: style fixes · a87da503
      Jérome Perrin authored
      a87da503
  2. 29 May, 2020 4 commits
  3. 28 May, 2020 2 commits
  4. 27 May, 2020 9 commits
  5. 25 May, 2020 6 commits
  6. 22 May, 2020 3 commits
  7. 21 May, 2020 1 commit
    • Jérome Perrin's avatar
      Prevent some useless logs · a8f32683
      Jérome Perrin authored
      This removes some logs happening a lot during tests, when installing business templates or indexing documents.
      
      See merge request !1105
      a8f32683
  8. 19 May, 2020 5 commits
  9. 18 May, 2020 1 commit
  10. 15 May, 2020 4 commits
  11. 14 May, 2020 3 commits