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 @@ ...@@ -65,15 +65,15 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <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 \n
packing_list_state = packing_list.getSimulationState()\n packing_list_state = packing_list.getSimulationState()\n
if packing_list_state == "draft":\n if packing_list_state == "draft":\n
packing_list.portal_workflow.doActionFor(\n packing_list.portal_workflow.doActionFor(\n
packing_list,\n packing_list,\n
\'confirm_action\',\n \'confirm_action\',\n
wf_id=\'production_packing_list_workflow\',\n comment=Message(\'erp5_ui\', \'Initialized by Delivery Builder\'))\n
comment="Initialized by Delivery Builder")\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -116,6 +116,8 @@ if packing_list_state == "draft":\n ...@@ -116,6 +116,8 @@ if packing_list_state == "draft":\n
<key> <string>co_varnames</string> </key> <key> <string>co_varnames</string> </key>
<value> <value>
<tuple> <tuple>
<string>Products.ERP5Type.Message</string>
<string>Message</string>
<string>context</string> <string>context</string>
<string>packing_list</string> <string>packing_list</string>
<string>_getattr_</string> <string>_getattr_</string>
......
327 330
\ 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