Commit 2ad3f5c1 authored by Jérome Perrin's avatar Jérome Perrin

set business process

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40099 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 27e17cd5
...@@ -2,10 +2,7 @@ ...@@ -2,10 +2,7 @@
<ZopeData> <ZopeData>
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/> <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
...@@ -68,6 +65,7 @@ source_node_id = "erp5_pdm_ui_test_source_node"\n ...@@ -68,6 +65,7 @@ source_node_id = "erp5_pdm_ui_test_source_node"\n
destination_node_id = "erp5_pdm_ui_test_destination_node"\n destination_node_id = "erp5_pdm_ui_test_destination_node"\n
\n \n
resource_id = "erp5_pdm_ui_test_product"\n resource_id = "erp5_pdm_ui_test_product"\n
business_process = \'business_process_module/erp5_default_business_process\'\n
\n \n
quantity = 1\n quantity = 1\n
\n \n
...@@ -82,6 +80,7 @@ if state in [\'planned\', \'ordered\']:\n ...@@ -82,6 +80,7 @@ if state in [\'planned\', \'ordered\']:\n
source_section=\'organisation_module/%s\' % source_node_id,\n source_section=\'organisation_module/%s\' % source_node_id,\n
destination=\'organisation_module/%s\' % destination_node_id,\n destination=\'organisation_module/%s\' % destination_node_id,\n
destination_section=\'organisation_module/%s\' % destination_node_id,\n destination_section=\'organisation_module/%s\' % destination_node_id,\n
specialise=business_process,\n
start_date=DateTime(),\n start_date=DateTime(),\n
)\n )\n
order_line = order.newContent(\n order_line = order.newContent(\n
...@@ -102,6 +101,7 @@ else:\n ...@@ -102,6 +101,7 @@ else:\n
title=delivery_title,\n title=delivery_title,\n
source=\'organisation_module/%s\' % source_node_id,\n source=\'organisation_module/%s\' % source_node_id,\n
destination=\'organisation_module/%s\' % destination_node_id,\n destination=\'organisation_module/%s\' % destination_node_id,\n
specialise=business_process,\n
start_date=DateTime(),\n start_date=DateTime(),\n
)\n )\n
delivery_line = delivery.newContent(\n delivery_line = delivery.newContent(\n
...@@ -183,6 +183,7 @@ return "Delivery Created."\n ...@@ -183,6 +183,7 @@ return "Delivery Created."\n
<string>source_node_id</string> <string>source_node_id</string>
<string>destination_node_id</string> <string>destination_node_id</string>
<string>resource_id</string> <string>resource_id</string>
<string>business_process</string>
<string>quantity</string> <string>quantity</string>
<string>module</string> <string>module</string>
<string>order</string> <string>order</string>
......
30 31
\ 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