Added a cancellation to the "Validate and finish" transistion #22006

This commit is contained in:
Piret Valentin 2019-01-21 17:01:06 +01:00
parent ba9e817e7b
commit 7bb56ab273
1 changed files with 8 additions and 0 deletions

View File

@ -43,6 +43,7 @@
</state>
<state state_id="finished" title="Finished" i18n:attributes="title">
<exit-transition transition_id="obsolete"/>
<exit-transition transition_id="back_to_draft"/>
<exit-transition transition_id="send_to_trash"/>
<permission-map name="View" acquired="True">
</permission-map>
@ -135,6 +136,13 @@
<permission-role>Manager</permission-role>
</permission-map>
</state>
<transition transition_id="back_to_draft" title="Back to draft" new_state="draft" trigger="USER" before_script="" after_script="" i18n:attributes="title">
<action url="" category="workflow" icon="" i18n:translate="">Back to draft</action>
<guard>
<guard-role>Manager</guard-role>
<guard-role>Owner</guard-role>
</guard>
</transition>
<transition transition_id="restore_from_trash" title="Restore" new_state="finished" trigger="USER" before_script="" after_script="" i18n:attributes="title">
<action url="" category="workflow" icon="" i18n:translate="">Restore</action>
<guard>