From 2ad3f5c1b6cec6f25c49622a5b4fc25462b031b6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Tue, 9 Nov 2010 12:55:49 +0000
Subject: [PATCH] set business process

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40099 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../erp5_pdm_ui_test/PdmZuite_createDelivery.xml         | 9 +++++----
 bt5/erp5_pdm_ui_test/bt/revision                         | 2 +-
 2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/bt5/erp5_pdm_ui_test/SkinTemplateItem/portal_skins/erp5_pdm_ui_test/PdmZuite_createDelivery.xml b/bt5/erp5_pdm_ui_test/SkinTemplateItem/portal_skins/erp5_pdm_ui_test/PdmZuite_createDelivery.xml
index 2ee0f5eab6..f56bd9fcac 100644
--- a/bt5/erp5_pdm_ui_test/SkinTemplateItem/portal_skins/erp5_pdm_ui_test/PdmZuite_createDelivery.xml
+++ b/bt5/erp5_pdm_ui_test/SkinTemplateItem/portal_skins/erp5_pdm_ui_test/PdmZuite_createDelivery.xml
@@ -2,10 +2,7 @@
 <ZopeData>
   <record id="1" aka="AAAAAAAAAAE=">
     <pickle>
-      <tuple>
-        <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
-        <tuple/>
-      </tuple>
+      <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
     </pickle>
     <pickle>
       <dictionary>
@@ -68,6 +65,7 @@ source_node_id = "erp5_pdm_ui_test_source_node"\n
 destination_node_id = "erp5_pdm_ui_test_destination_node"\n
 \n
 resource_id = "erp5_pdm_ui_test_product"\n
+business_process = \'business_process_module/erp5_default_business_process\'\n
 \n
 quantity = 1\n
 \n
@@ -82,6 +80,7 @@ if state in [\'planned\', \'ordered\']:\n
     source_section=\'organisation_module/%s\' % source_node_id,\n
     destination=\'organisation_module/%s\' % destination_node_id,\n
     destination_section=\'organisation_module/%s\' % destination_node_id,\n
+    specialise=business_process,\n
     start_date=DateTime(),\n
   )\n
   order_line = order.newContent(\n
@@ -102,6 +101,7 @@ else:\n
     title=delivery_title,\n
     source=\'organisation_module/%s\' % source_node_id,\n
     destination=\'organisation_module/%s\' % destination_node_id,\n
+    specialise=business_process,\n
     start_date=DateTime(),\n
   )\n
   delivery_line = delivery.newContent(\n
@@ -183,6 +183,7 @@ return "Delivery Created."\n
                             <string>source_node_id</string>
                             <string>destination_node_id</string>
                             <string>resource_id</string>
+                            <string>business_process</string>
                             <string>quantity</string>
                             <string>module</string>
                             <string>order</string>
diff --git a/bt5/erp5_pdm_ui_test/bt/revision b/bt5/erp5_pdm_ui_test/bt/revision
index 8580e7b684..b74e882ae3 100644
--- a/bt5/erp5_pdm_ui_test/bt/revision
+++ b/bt5/erp5_pdm_ui_test/bt/revision
@@ -1 +1 @@
-30
\ No newline at end of file
+31
\ No newline at end of file
-- 
2.30.9