From 216fb23250e2b20882406d11e9a0b367c3ce9452 Mon Sep 17 00:00:00 2001
From: Kazuhiko Shiozaki <kazuhiko@nexedi.com>
Date: Wed, 16 Jan 2008 11:01:04 +0000
Subject: [PATCH] * enable acquire_local_roles on Supply Link, Supply Chain,
 Supply Node and Supply Chain Module.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18728 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../portal_types/Supply%20Chain%20Module.xml       | 14 ++++++++++++++
 .../portal_types/Supply%20Chain.xml                | 14 ++++++++++++++
 .../portal_types/Supply%20Link.xml                 | 14 ++++++++++++++
 .../portal_types/Supply%20Node.xml                 | 14 ++++++++++++++
 bt5/erp5_mrp/bt/change_log                         |  5 ++++-
 bt5/erp5_mrp/bt/revision                           |  2 +-
 6 files changed, 61 insertions(+), 2 deletions(-)

diff --git a/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Supply%20Chain%20Module.xml b/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Supply%20Chain%20Module.xml
index 409013e4ba..bd7a59a319 100644
--- a/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Supply%20Chain%20Module.xml
+++ b/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Supply%20Chain%20Module.xml
@@ -58,6 +58,10 @@
               <list/>
             </value>
         </item>
+        <item>
+            <key> <string>acquire_local_roles</string> </key>
+            <value> <int>1</int> </value>
+        </item>
         <item>
             <key> <string>allowed_content_types</string> </key>
             <value>
@@ -99,6 +103,12 @@ be a problem).</string> </value>
               </tuple>
             </value>
         </item>
+        <item>
+            <key> <string>group_list</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
         <item>
             <key> <string>hidden_content_type_list</string> </key>
             <value>
@@ -113,6 +123,10 @@ be a problem).</string> </value>
             <key> <string>init_script</string> </key>
             <value> <string></string> </value>
         </item>
+        <item>
+            <key> <string>permission</string> </key>
+            <value> <string></string> </value>
+        </item>
         <item>
             <key> <string>property_sheet_list</string> </key>
             <value>
diff --git a/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Supply%20Chain.xml b/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Supply%20Chain.xml
index 595bae2724..31321f759a 100644
--- a/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Supply%20Chain.xml
+++ b/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Supply%20Chain.xml
@@ -42,6 +42,10 @@
               <list/>
             </value>
         </item>
+        <item>
+            <key> <string>acquire_local_roles</string> </key>
+            <value> <int>1</int> </value>
+        </item>
         <item>
             <key> <string>allowed_content_types</string> </key>
             <value>
@@ -83,6 +87,12 @@
             <key> <string>filter_content_types</string> </key>
             <value> <int>1</int> </value>
         </item>
+        <item>
+            <key> <string>group_list</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
         <item>
             <key> <string>hidden_content_type_list</string> </key>
             <value>
@@ -97,6 +107,10 @@
             <key> <string>init_script</string> </key>
             <value> <string></string> </value>
         </item>
+        <item>
+            <key> <string>permission</string> </key>
+            <value> <string></string> </value>
+        </item>
         <item>
             <key> <string>property_sheet_list</string> </key>
             <value>
diff --git a/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Supply%20Link.xml b/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Supply%20Link.xml
index 696e24e722..b338775018 100644
--- a/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Supply%20Link.xml
+++ b/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Supply%20Link.xml
@@ -42,6 +42,10 @@
               <list/>
             </value>
         </item>
+        <item>
+            <key> <string>acquire_local_roles</string> </key>
+            <value> <int>1</int> </value>
+        </item>
         <item>
             <key> <string>allowed_content_types</string> </key>
             <value>
@@ -76,6 +80,12 @@
             <key> <string>factory</string> </key>
             <value> <string>addSupplyLink</string> </value>
         </item>
+        <item>
+            <key> <string>group_list</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
         <item>
             <key> <string>hidden_content_type_list</string> </key>
             <value>
@@ -86,6 +96,10 @@
             <key> <string>id</string> </key>
             <value> <string>Supply Link</string> </value>
         </item>
+        <item>
+            <key> <string>permission</string> </key>
+            <value> <string></string> </value>
+        </item>
         <item>
             <key> <string>property_sheet_list</string> </key>
             <value>
diff --git a/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Supply%20Node.xml b/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Supply%20Node.xml
index 55d79e40f4..313a2db74c 100644
--- a/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Supply%20Node.xml
+++ b/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Supply%20Node.xml
@@ -42,6 +42,10 @@
               <list/>
             </value>
         </item>
+        <item>
+            <key> <string>acquire_local_roles</string> </key>
+            <value> <int>1</int> </value>
+        </item>
         <item>
             <key> <string>allowed_content_types</string> </key>
             <value>
@@ -76,6 +80,12 @@
             <key> <string>factory</string> </key>
             <value> <string>addSupplyLink</string> </value>
         </item>
+        <item>
+            <key> <string>group_list</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
         <item>
             <key> <string>hidden_content_type_list</string> </key>
             <value>
@@ -86,6 +96,10 @@
             <key> <string>id</string> </key>
             <value> <string>Supply Node</string> </value>
         </item>
+        <item>
+            <key> <string>permission</string> </key>
+            <value> <string></string> </value>
+        </item>
         <item>
             <key> <string>property_sheet_list</string> </key>
             <value>
diff --git a/bt5/erp5_mrp/bt/change_log b/bt5/erp5_mrp/bt/change_log
index dc3b19176a..fdc5a0ff7d 100644
--- a/bt5/erp5_mrp/bt/change_log
+++ b/bt5/erp5_mrp/bt/change_log
@@ -1,3 +1,6 @@
+2008-01-16 kazuhiko
+* enable acquire_local_roles on Supply Link, Supply Chain, Supply Node and Supply Chain Module.
+
 2007-11-14 kazuhiko
 * check if simulation state is draft or not before calling 'calculate' workflow method otherwise causality state can remain calculating.
 
@@ -48,4 +51,4 @@ production modules
 
 2005-07-26 Romain
 
-First version.
\ No newline at end of file
+First version.
diff --git a/bt5/erp5_mrp/bt/revision b/bt5/erp5_mrp/bt/revision
index 6139554210..8783e30511 100644
--- a/bt5/erp5_mrp/bt/revision
+++ b/bt5/erp5_mrp/bt/revision
@@ -1 +1 @@
-52
\ No newline at end of file
+53
\ No newline at end of file
-- 
2.30.9