1. 14 Apr, 2021 7 commits
    • Arnaud Fontaine's avatar
      ERP5Workflow: DC Workflows are now ERP5 objects (!1378). · 914ecb18
      Arnaud Fontaine authored
      This also moves all Configurator Workflows in workflow_module to portal_workflow
      (workflow_module was an implementation of Workflows based on ERP5 objects and
      not using DCWorkflow code).
      
      * Workflows are now defined on on portal_workflow._chains_by_type anymore but,
        as everything else, on the Portal Type itself.
      * portal_workflow can contain and work at the same time with legacy and new
        Workflows (ERP5Type/patches/DCWorkflow.py monkey-patching DCWorkflow classes
        to provide the same API).
      * Existing Workflow Scripts should work as they are and the code can be updated
        later on to take advantage of the new API:
        + With legacy implementation Workflow {Scripts,Transitions,Worklists,States}
          were in a Folder ({scripts,transitions,worklists,states} attribute) but
          all of these are now in the Workflow itself and their IDs are prefixed
          (PropertySheet-style), for example `script_`. Legacy attributes are
          provided in new implementation to call the new API.
        + When calling a Workflow Script, `container` was bound to its parent, namely
          WF.scripts (Folder) and a Workflow Script could call another. Now `container`
          is bound to the WF itself and Workflow Scripts are in a Workflow directly.
          New implementation `scripts` attribute handle such use case.
        + Override portal_workflow.__getattr__ so that a Workflow Script can call
          another one without prefix.
      
      erp5_performance_test:testWorkflowPerformance were ran to compare DCWorkflow
      and ERP5Workflow implementations and it seems to be about 4% slower with the
      new implementation (legacy: 7.547, 7.593, 7.618, 7.59, 7.514 and new: 7.842,
      7.723, 7.902, 7.837, 7.875).
      
      Work done by Wenjie Zheng, Isabelle Vallet, Sebastien Robin and myself.
      914ecb18
    • Kazuhiko Shiozaki's avatar
    • Kazuhiko Shiozaki's avatar
      57bb2836
    • Jérome Perrin's avatar
    • Jérome Perrin's avatar
      payment_mean: add dependency on erp5_trade · 9817808a
      Jérome Perrin authored
      because this business template uses fields from erp5_trade field libraries
      9817808a
    • Jérome Perrin's avatar
      payment_mean: fix a wrongly named script · 832fc753
      Jérome Perrin authored
      832fc753
    • Jérome Perrin's avatar
      payment_mean: fix internal proxy field structures · 3892cbde
      Jérome Perrin authored
      These fields were created when proxify action was broken.
      This re-exports the fields after using fixConsistency on them.
      
      see also !1352
      3892cbde
  2. 13 Apr, 2021 6 commits
  3. 12 Apr, 2021 3 commits
  4. 09 Apr, 2021 4 commits
  5. 07 Apr, 2021 1 commit
  6. 06 Apr, 2021 1 commit
  7. 02 Apr, 2021 2 commits
  8. 01 Apr, 2021 1 commit
  9. 31 Mar, 2021 3 commits
  10. 30 Mar, 2021 1 commit
    • Jérome Perrin's avatar
      deferred_style: Properly keep request parameters · eab00f14
      Jérome Perrin authored
      When rendering reports, deferred style was only keeping request.other, but
      some places, like Products.ERP5Form.ListBox.ListBox.getParamDict read only in
      request.form, which caused different behaviours when rendering reports
      directly or in activities, because when rendering in activities request keys
      that the report dialog might have pushed were not preset in request. They
      were of course present when rendering the report directly, because this was
      the same request, so this lead to different behaviours wether reports were
      rendering in activities or directly, like we could observe in 7058ab6f
      (accounting: fix grouping option of GL when running in deferred mode, 2021-02-25)
      
      This change deferred style to properly propagate request.other and
      request.form in all activities of reports.
      eab00f14
  11. 29 Mar, 2021 9 commits
  12. 26 Mar, 2021 2 commits