Commit 88f2d10e authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

call miss() only if transition is possible.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34086 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6f24cbc5
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
<value> <string>packing_list = state_change[\'object\']\n <value> <string>packing_list = state_change[\'object\']\n
if packing_list.isPacked():\n if packing_list.isPacked():\n
packing_list.pack()\n packing_list.pack()\n
else:\n elif packing_list.getPortalObject().portal_workflow.isTransitionPossible(packing_list, \'miss\'):\n
packing_list.miss()\n packing_list.miss()\n
</string> </value> </string> </value>
</item> </item>
......
884 885
\ 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