Commit 43ad4bb0 authored by Jérome Perrin's avatar Jérome Perrin

added portal_type variable (which is needed for workflists) in ERP5 defaut workflow



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11348 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 44b6b4f7
......@@ -397,7 +397,7 @@ def setupERP5Workflow(wf):
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 @@ def setupERP5Workflow(wf):
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 """
......
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