Commit 42d18813 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Add getSimulationState.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@974 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5ac2b5a1
......@@ -120,4 +120,12 @@ une commande..."""
)
}
security.declareProtected(Permissions.AccessContentsInformation, 'getSimulationState')
def getSimulationState(self, id_only=1):
"""
Returns the current state in simulation
"""
portal_workflow = getToolByName(self, 'portal_workflow')
wf = portal_workflow.getWorkflowById('sale_invoice_transaction_workflow')
return wf._getWorkflowStateOf(self, id_only=id_only )
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