From febfb21d82414f6a171cb6902d47ac1c1d8af8d4 Mon Sep 17 00:00:00 2001
From: Wenjie Zheng <wenjie.zheng@tiolive.com>
Date: Wed, 3 Jun 2015 15:05:30 +0000
Subject: [PATCH] ActionsTool.py: force load portal_workflow as an action
 provider to fix action problem.

---
 product/ERP5Type/patches/ActionsTool.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/product/ERP5Type/patches/ActionsTool.py b/product/ERP5Type/patches/ActionsTool.py
index 17627dea43..5c1325671d 100644
--- a/product/ERP5Type/patches/ActionsTool.py
+++ b/product/ERP5Type/patches/ActionsTool.py
@@ -55,7 +55,11 @@ def listFilteredActionsFor(self, object=None):
     actions = []
 
     # Include actions from specific tools.
-    for provider_name in self.listActionProviders():
+    listActionProviderlist = list(self.listActionProviders())
+    if 'portal_workflow' not in listActionProviderlist:
+      listActionProviderlist.append('portal_workflow')
+
+    for provider_name in listActionProviderlist:
         provider = getattr(self, provider_name)
         if hasattr(provider, 'getActionListFor'):
             from Products.ERP5Type.Utils import createExpressionContext
-- 
2.30.9