Commit 8082c155 authored by Jérome Perrin's avatar Jérome Perrin

Fix 2 problems with accounting_period_workflow:

* 'deliver_action' transition had no guard.
* 'restart_action' was not calling 'start' workflow method but going directly to started state

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16461 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ff99f23e
......@@ -47,7 +47,7 @@
<item>
<key> <string>guard</string> </key>
<value>
<none/>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
......@@ -73,13 +73,36 @@
<item>
<key> <string>var_exprs</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Products.DCWorkflow.Guard</string>
<string>Guard</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>roles</string> </key>
<value>
<tuple>
<string>Assignor</string>
</tuple>
</value>
</item>
</dictionary>
</pickle>
</record>
<record id="3" aka="AAAAAAAAAAM=">
<pickle>
<tuple>
<tuple>
......@@ -98,7 +121,7 @@
<item>
<key> <string>profit_and_loss_account</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
<persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
</value>
</item>
</dictionary>
......@@ -107,7 +130,7 @@
</dictionary>
</pickle>
</record>
<record id="3" aka="AAAAAAAAAAM=">
<record id="4" aka="AAAAAAAAAAQ=">
<pickle>
<tuple>
<tuple>
......
......@@ -32,7 +32,7 @@
</item>
<item>
<key> <string>after_script_name</string> </key>
<value> <string></string> </value>
<value> <string>start</string> </value>
</item>
<item>
<key> <string>description</string> </key>
......@@ -50,7 +50,7 @@
</item>
<item>
<key> <string>new_state_id</string> </key>
<value> <string>started</string> </value>
<value> <string></string> </value>
</item>
<item>
<key> <string>script_name</string> </key>
......
407
\ No newline at end of file
408
\ No newline at end of file
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