Commit 93f60cb5 authored by wenjie.zheng's avatar wenjie.zheng

Workflow.py: addTransition function of compatbility.

parent 18623e4b
......@@ -732,6 +732,10 @@ class Workflow(IdAsReferenceMixin("", "prefix"), XMLObject):
else:
return new_sdef
def addTransition(self, name):
self.newContent(portal_type='Transition')
self.setReference('dummy_workflow_method')
def showAsXML(self, root=None):
if root is None:
root = Element('erp5')
......
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