From 93a313bbd0570dfa8ee210b88450673e98c9314a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com>
Date: Fri, 27 Jun 2008 14:51:55 +0000
Subject: [PATCH] - set init script for delivery and delivery line portal types
 used in production: generate reference on init, generate default int index on
 initialisation

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22043 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../Production%20Order%20Line.xml             |  2 +-
 .../portal_types/Production%20Order.xml       | 61 ++++++++++++++++++-
 .../Production%20Packing%20List%20Line.xml    |  2 +-
 .../Production%20Packing%20List.xml           | 61 ++++++++++++++++++-
 .../Production%20Report%20Line.xml            |  2 +-
 .../portal_types/Production%20Report.xml      |  2 +-
 bt5/erp5_mrp/bt/revision                      |  2 +-
 7 files changed, 125 insertions(+), 7 deletions(-)

diff --git a/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Production%20Order%20Line.xml b/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Production%20Order%20Line.xml
index 0d520ea6b5..fab5effab1 100644
--- a/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Production%20Order%20Line.xml
+++ b/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Production%20Order%20Line.xml
@@ -105,7 +105,7 @@
         </item>
         <item>
             <key> <string>init_script</string> </key>
-            <value> <string></string> </value>
+            <value> <string>ProductionOrderLine_init</string> </value>
         </item>
         <item>
             <key> <string>permission</string> </key>
diff --git a/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Production%20Order.xml b/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Production%20Order.xml
index 1c4416d5a1..e870910fc1 100644
--- a/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Production%20Order.xml
+++ b/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Production%20Order.xml
@@ -33,6 +33,25 @@
               <none/>
             </value>
         </item>
+        <item>
+            <key> <string>_property_domain_dict</string> </key>
+            <value>
+              <dictionary>
+                <item>
+                    <key> <string>short_title</string> </key>
+                    <value>
+                      <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+                    </value>
+                </item>
+                <item>
+                    <key> <string>title</string> </key>
+                    <value>
+                      <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
+                    </value>
+                </item>
+              </dictionary>
+            </value>
+        </item>
         <item>
             <key> <string>_roles</string> </key>
             <value>
@@ -105,7 +124,7 @@
         </item>
         <item>
             <key> <string>init_script</string> </key>
-            <value> <string></string> </value>
+            <value> <string>ProductionDelivery_generateReference</string> </value>
         </item>
         <item>
             <key> <string>permission</string> </key>
@@ -124,4 +143,44 @@
       </dictionary>
     </pickle>
   </record>
+  <record id="2" aka="AAAAAAAAAAI=">
+    <pickle>
+      <tuple>
+        <global name="TranslationInformation" module="Products.ERP5Type.TranslationProviderBase"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>domain_name</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>property_name</string> </key>
+            <value> <string>short_title</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="3" aka="AAAAAAAAAAM=">
+    <pickle>
+      <tuple>
+        <global name="TranslationInformation" module="Products.ERP5Type.TranslationProviderBase"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>domain_name</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>property_name</string> </key>
+            <value> <string>title</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
 </ZopeData>
diff --git a/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Production%20Packing%20List%20Line.xml b/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Production%20Packing%20List%20Line.xml
index 3e8b2e8ee9..312e2bc451 100644
--- a/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Production%20Packing%20List%20Line.xml
+++ b/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Production%20Packing%20List%20Line.xml
@@ -105,7 +105,7 @@
         </item>
         <item>
             <key> <string>init_script</string> </key>
-            <value> <string></string> </value>
+            <value> <string>ProductionDeliveryLine_init</string> </value>
         </item>
         <item>
             <key> <string>permission</string> </key>
diff --git a/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Production%20Packing%20List.xml b/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Production%20Packing%20List.xml
index 7f85b479a6..578fcfe798 100644
--- a/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Production%20Packing%20List.xml
+++ b/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Production%20Packing%20List.xml
@@ -33,6 +33,25 @@
               <none/>
             </value>
         </item>
+        <item>
+            <key> <string>_property_domain_dict</string> </key>
+            <value>
+              <dictionary>
+                <item>
+                    <key> <string>short_title</string> </key>
+                    <value>
+                      <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+                    </value>
+                </item>
+                <item>
+                    <key> <string>title</string> </key>
+                    <value>
+                      <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
+                    </value>
+                </item>
+              </dictionary>
+            </value>
+        </item>
         <item>
             <key> <string>_roles</string> </key>
             <value>
@@ -105,7 +124,7 @@
         </item>
         <item>
             <key> <string>init_script</string> </key>
-            <value> <string></string> </value>
+            <value> <string>ProductionDelivery_generateReference</string> </value>
         </item>
         <item>
             <key> <string>permission</string> </key>
@@ -124,4 +143,44 @@
       </dictionary>
     </pickle>
   </record>
+  <record id="2" aka="AAAAAAAAAAI=">
+    <pickle>
+      <tuple>
+        <global name="TranslationInformation" module="Products.ERP5Type.TranslationProviderBase"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>domain_name</string> </key>
+            <value> <string>erp5_content</string> </value>
+        </item>
+        <item>
+            <key> <string>property_name</string> </key>
+            <value> <string>short_title</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="3" aka="AAAAAAAAAAM=">
+    <pickle>
+      <tuple>
+        <global name="TranslationInformation" module="Products.ERP5Type.TranslationProviderBase"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>domain_name</string> </key>
+            <value> <string>erp5_content</string> </value>
+        </item>
+        <item>
+            <key> <string>property_name</string> </key>
+            <value> <string>title</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
 </ZopeData>
diff --git a/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Production%20Report%20Line.xml b/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Production%20Report%20Line.xml
index c1fdafaf7c..61b3e9b896 100644
--- a/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Production%20Report%20Line.xml
+++ b/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Production%20Report%20Line.xml
@@ -105,7 +105,7 @@
         </item>
         <item>
             <key> <string>init_script</string> </key>
-            <value> <string></string> </value>
+            <value> <string>ProductionDeliveryLine_init</string> </value>
         </item>
         <item>
             <key> <string>permission</string> </key>
diff --git a/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Production%20Report.xml b/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Production%20Report.xml
index e5cb1fc7ce..25eb3d9a5d 100644
--- a/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Production%20Report.xml
+++ b/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Production%20Report.xml
@@ -105,7 +105,7 @@
         </item>
         <item>
             <key> <string>init_script</string> </key>
-            <value> <string></string> </value>
+            <value> <string>ProductionDelivery_generateReference</string> </value>
         </item>
         <item>
             <key> <string>permission</string> </key>
diff --git a/bt5/erp5_mrp/bt/revision b/bt5/erp5_mrp/bt/revision
index 44dfb1d0bc..b1ef57c1f7 100644
--- a/bt5/erp5_mrp/bt/revision
+++ b/bt5/erp5_mrp/bt/revision
@@ -1 +1 @@
-264
\ No newline at end of file
+265
\ No newline at end of file
-- 
2.30.9