Files
tryton/tryton/plugins/workflow/__init__.py
T

20 lines
532 B
Python

from tryton.action import Action
def workflow_print(datas, parent):
datas = datas.copy()
datas['nested'] = False
Action.exec_report('workflow.instance.graph', datas)
return True
def workflow_print_complex(datas, parent):
datas = datas.copy()
datas['nested'] = True
Action.exec_report('workflow.instance.graph', datas)
return True
def get_plugins(model):
return [
(_('Print Workflow'), workflow_print),
(_('Print Workflow (Complex)'), workflow_print_complex),
]