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

add a function to allow delete an element from type erp5workflow_list

parent 95b15075
...@@ -466,6 +466,10 @@ class ERP5TypeInformation(XMLObject, ...@@ -466,6 +466,10 @@ class ERP5TypeInformation(XMLObject,
"""Getter for 'type_workflow' property""" """Getter for 'type_workflow' property"""
return list(self.erp5workflow_list) return list(self.erp5workflow_list)
def delTypeERP5WorkflowList(self, wf_id):
""" allow to modify workflow assignment from script. """
self.erp5workflow_list = tuple(wf for wf in self.erp5workflow_list if wf != wf_id)
def getTypePropertySheetValueList(self): def getTypePropertySheetValueList(self):
type_property_sheet_list = self.getTypePropertySheetList() type_property_sheet_list = self.getTypePropertySheetList()
if not type_property_sheet_list: 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