Commit b8bd1d49 authored by wenjie.zheng's avatar wenjie.zheng Committed by Sebastien Robin

add a function to allow add an element from type erp5workflow_list

parent fa106ec9
......@@ -470,6 +470,10 @@ class ERP5TypeInformation(XMLObject,
""" allow to modify workflow assignment from script. """
self.erp5workflow_list = tuple(wf for wf in self.erp5workflow_list if wf != wf_id)
def addTypeERP5WorkflowList(self, wf_id):
""" allow to modify workflow assignment from script. """
self.erp5workflow_list = self.erp5workflow_list + (wf_id, )
def getTypePropertySheetValueList(self):
type_property_sheet_list = self.getTypePropertySheetList()
if not type_property_sheet_list:
......
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