1. 26 Apr, 2018 1 commit
  2. 21 Mar, 2018 1 commit
    • Arnaud Fontaine's avatar
      ZODB Components not following ID=(document|extension|test).VERSION.REFERENCE... · 7aeb0739
      Arnaud Fontaine authored
      ZODB Components not following ID=(document|extension|test).VERSION.REFERENCE convention are not importable anymore.
      
      Import mechanism now relies on this convention to find the document in
      portal_components.
      
      This is necessary to get rid of _registry_dict (ZODB Components equivalent of
      document_class_registry), along with several locks. This used to be a mapping
      between (reference, version) to ID stored outside of Zope Transactions as a
      dict on global erp5.component.XXX modules.
      
      This did not work for long transactions such as installing many bt5s:
        1. Transaction1: Install a bt5 with ZODB Component "Foo".
           => Trigger a reset and _registry_dict is cleared.
        2. Transaction2: TimerServer kicks in.
           => Generate _registry_dict without "Foo".
        3. Transaction1: Install another bt5 using "Foo".
           => "Foo" not in _registry_dict and thus considered not present.
      7aeb0739
  3. 18 Mar, 2018 1 commit
  4. 16 Mar, 2018 1 commit
  5. 09 Mar, 2018 12 commits
  6. 23 Jan, 2018 2 commits
  7. 22 Jan, 2018 3 commits
  8. 16 Jan, 2018 2 commits
  9. 15 Jan, 2018 2 commits
  10. 08 Jan, 2018 1 commit
  11. 04 Jan, 2018 13 commits
  12. 03 Jan, 2018 1 commit
    • Sebastien Robin's avatar
      stock optimisation: fixed error when stock optimisation was used with inventories · 3a597c96
      Sebastien Robin authored
      generateMovementListForStockOptimisation was raising error when there was inventories.
      The method was assuming that doing getObject() on an inventory line (from
      getFutureInventoryList) was always returning a movement. But sometimes we get
      the inventory itself. So do not use getVariationCategoryList, but use the variation_text
      stored in the stock table.
      3a597c96