Commit 86743e80 authored by Vincent Pelletier's avatar Vincent Pelletier

Do the same checks as in finish_action transition.

Allow archiving only if document has a causality.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18961 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c193e68c
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
</item> </item>
<item> <item>
<key> <string>script_name</string> </key> <key> <string>script_name</string> </key>
<value> <string></string> </value> <value> <string>CheckTransitionFinish</string> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
...@@ -73,6 +73,12 @@ ...@@ -73,6 +73,12 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>expr</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value>
</item>
<item> <item>
<key> <string>roles</string> </key> <key> <string>roles</string> </key>
<value> <value>
...@@ -85,4 +91,20 @@ ...@@ -85,4 +91,20 @@
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
<record id="3" aka="AAAAAAAAAAM=">
<pickle>
<tuple>
<global name="Expression" module="Products.CMFCore.Expression"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>python: here.getCausalityValue() is not None</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData> </ZopeData>
575 578
\ No newline at end of file \ 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