Commit f7a2a211 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

* rename post genaration script for payment transaction builder.

* call workflow method instead of calling doActionFor().


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32156 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 96ade857
......@@ -55,14 +55,11 @@
<key> <string>_body</string> </key>
<value> <string>from Products.ERP5Type.Message import translateString\n
\n
# Return Message object, so that this message will be translated when it is rendered later.\n
\n
payment_transaction = context\n
\n
# initialize accounting_workflow to planned state\n
if payment_transaction.getSimulationState() == "draft":\n
payment_transaction.portal_workflow.doActionFor(\n
payment_transaction, \'plan_action\',\n
comment=translateString("Initialised by Delivery Builder."))\n
payment_transaction.plan(comment=translateString("Initialised by Delivery Builder."))\n
</string> </value>
</item>
<item>
......@@ -124,7 +121,7 @@ if payment_transaction.getSimulationState() == "draft":\n
</item>
<item>
<key> <string>id</string> </key>
<value> <string>PaymentTransaction_copyInvoiceProperties</string> </value>
<value> <string>PaymentTransaction_postGeneration</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
......
1094
\ No newline at end of file
1095
\ No newline at end of file
......@@ -35,7 +35,7 @@
</item>
<item>
<key> <string>delivery_after_generation_script_id</string> </key>
<value> <string>PaymentTransaction_copyInvoiceProperties</string> </value>
<value> <string>PaymentTransaction_postGeneration</string> </value>
</item>
<item>
<key> <string>delivery_cell_collect_order</string> </key>
......
326
\ No newline at end of file
327
\ 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