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): ...@@ -397,7 +397,7 @@ def setupERP5Workflow(wf):
for s in ('draft',): for s in ('draft',):
wf.states.addState(s) wf.states.addState(s)
for v in ('action', 'actor', 'comment', 'history', 'time', for v in ('action', 'actor', 'comment', 'history', 'time',
'error_message'): 'error_message', 'portal_type'):
wf.variables.addVariable(v) wf.variables.addVariable(v)
for perm in (Permissions.AccessContentsInformation, for perm in (Permissions.AccessContentsInformation,
Permissions.View, Permissions.View,
...@@ -440,6 +440,10 @@ def setupERP5Workflow(wf): ...@@ -440,6 +440,10 @@ def setupERP5Workflow(wf):
vdef.setProperties(description='Error message if validation failed', vdef.setProperties(description='Error message if validation failed',
for_status=1, update_always=1) 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): def createERP5Workflow(id):
"""Creates an ERP5 Workflow """ """Creates an ERP5 Workflow """
ob = DCWorkflowDefinition(id) ob = DCWorkflowDefinition(id)
......
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