Commit 0605f279 authored by Łukasz Nowak's avatar Łukasz Nowak

- do not hardcode workflow id

- use translation for comment in workflow

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22324 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 98ab02d5
......@@ -65,15 +65,15 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>packing_list = context\n
<value> <string>from Products.ERP5Type.Message import Message\n
packing_list = context\n
\n
packing_list_state = packing_list.getSimulationState()\n
if packing_list_state == "draft":\n
packing_list.portal_workflow.doActionFor(\n
packing_list,\n
\'confirm_action\',\n
wf_id=\'production_packing_list_workflow\',\n
comment="Initialized by Delivery Builder")\n
comment=Message(\'erp5_ui\', \'Initialized by Delivery Builder\'))\n
</string> </value>
</item>
<item>
......@@ -116,6 +116,8 @@ if packing_list_state == "draft":\n
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>Products.ERP5Type.Message</string>
<string>Message</string>
<string>context</string>
<string>packing_list</string>
<string>_getattr_</string>
......
327
\ No newline at end of file
330
\ 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