1. 16 Nov, 2016 1 commit
  2. 31 Oct, 2016 1 commit
    • iv's avatar
      ERP5Workflow: compute correctly the transition id · b1d54882
      iv authored
      In case of workflow being a DCWorkflow (from wf_id or workflow_list),
      we should get the transition id according to the old DC workflow
      transition ids (ex: plan_action and not transition_plan_action).
      b1d54882
  3. 27 Oct, 2016 4 commits
    • iv's avatar
      ERP5Workflow: perf: cleanup of doActionFor · c589e844
      iv authored
      Before this fix, checking that the action was possible from the
      current state was not done correctly (isActionSupported was not
      used to set the transition).
      
      Also avoid to check if transition is in getTransitionValueList:
      it is useless (transition *is* on of the workflow or is None!)
      and calls the expensive 'objectValues' method
      c589e844
    • iv's avatar
      ERP5Workflow: perf: support parameter 'state' in isActionSupported · 484fd839
      iv authored
      This allows to avoid the call of _getWorkflowStateOf if it was already
      done before, and so reduce the number of calls of '_getOb' method.
      484fd839
    • iv's avatar
      ERP5Workflow: use get...List methods · 6f7223dd
      iv authored
      6f7223dd
    • iv's avatar
      ERP5Workflow: perf: avoid expensive operations in getattr · b97ae55e
      iv authored
      __getattr__ was overriden in order to be able to call the script
      using its reference (not prefixed by script_) from another workflow
      script (see testTradeReports for example)
      
      the problem is that it was doing a lot of useless getattr (each time,
      it was checking for script_foo, even if foo is a transition, state, ...)
      
      we now just change the context given to the script by adding foo
      for script_foo to the context dict
      b97ae55e
  4. 24 Oct, 2016 1 commit
  5. 21 Oct, 2016 1 commit
  6. 19 Oct, 2016 1 commit
  7. 18 Oct, 2016 4 commits
  8. 17 Oct, 2016 2 commits
  9. 14 Oct, 2016 3 commits
  10. 12 Oct, 2016 1 commit
  11. 11 Oct, 2016 5 commits
  12. 10 Oct, 2016 4 commits
  13. 07 Oct, 2016 8 commits
  14. 05 Oct, 2016 4 commits