Commit 6e0d599d authored by wenjie.zheng's avatar wenjie.zheng

patches/ActionsTool.py: move action provider check to workflow tool migration in ERP5Site.py .

parent 8ad8c08e
......@@ -55,11 +55,7 @@ def listFilteredActionsFor(self, object=None):
actions = []
# Include actions from specific tools.
listActionProviderlist = list(self.listActionProviders())
if 'portal_workflow' not in listActionProviderlist:
listActionProviderlist.append('portal_workflow')
for provider_name in listActionProviderlist:
for provider_name in self.listActionProviders():
provider = getattr(self, provider_name)
if hasattr(provider, 'getActionListFor'):
from Products.ERP5Type.Utils import createExpressionContext
......
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