[Erp5-report] r11348 - /erp5/trunk/products/ERP5Type/patches/DCWorkflow.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Nov 17 10:08:27 CET 2006


Author: jerome
Date: Fri Nov 17 10:08:24 2006
New Revision: 11348

URL: http://svn.erp5.org?rev=11348&view=rev
Log:
added portal_type variable (which is needed for workflists) in ERP5 defaut workflow


Modified:
    erp5/trunk/products/ERP5Type/patches/DCWorkflow.py

Modified: erp5/trunk/products/ERP5Type/patches/DCWorkflow.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/patches/DCWorkflow.py?rev=11348&r1=11347&r2=11348&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/patches/DCWorkflow.py (original)
+++ erp5/trunk/products/ERP5Type/patches/DCWorkflow.py Fri Nov 17 10:08:24 2006
@@ -397,7 +397,7 @@
   for s in ('draft',):
     wf.states.addState(s)
   for v in ('action', 'actor', 'comment', 'history', 'time',
-            'error_message'):
+            'error_message', 'portal_type'):
     wf.variables.addVariable(v)
   for perm in (Permissions.AccessContentsInformation,
                Permissions.View,
@@ -439,6 +439,10 @@
   vdef = wf.variables['error_message']
   vdef.setProperties(description='Error message if validation failed',
                      for_status=1, update_always=1)
+  
+  vdef = wf.variables['portal_type']
+  vdef.setProperties(description='portal type (use as filter for worklists)',
+                     for_catalog=1)
 
 def createERP5Workflow(id):
   """Creates an ERP5 Workflow """




More information about the Erp5-report mailing list