Commit a02544ec authored by wenjie.zheng's avatar wenjie.zheng

PortalTypeClassInteractor.py: resetDynamic after a separated reassignment...

PortalTypeClassInteractor.py: resetDynamic after a separated reassignment function, instead of conversion function. Because resetDynamic after each conversion is too expensive, thus should do after all workflows are converted.
parent 22ad326e
......@@ -58,7 +58,7 @@ class PortalTypeClassInteractor(Interactor):
# New workflow compatibility
from Products.ERP5.Tool.WorkflowTool import WorkflowTool
self.on(WorkflowTool.dc_workflow_asERP5Object).doAfter(self.resetDynamic)
self.on(WorkflowTool.reassignWorkflow).doAfter(self.resetDynamic)
from Products.ERP5Type.ERP5Type import ERP5TypeInformation
self.on(ERP5TypeInformation.addTypeWorkflowList).doAfter(self.resetDynamic)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment