From 19f524234299472ea6807cdd573d87ca8041557f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com>
Date: Thu, 26 Jun 2008 07:53:41 +0000
Subject: [PATCH] - allow to edit title and deliverable of Supply Link for
 Supply Chain view

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21917 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../erp5_mrp/SupplyChain_view.xml             |  5 +-
 .../erp5_mrp/SupplyChain_view/listbox.xml     | 16 +++
 .../SupplyChain_view/listbox_deliverable.xml  | 93 +++++++++++++++++
 .../SupplyChain_view/listbox_title.xml        | 99 +++++++++++++++++++
 bt5/erp5_mrp/bt/revision                      |  2 +-
 5 files changed, 213 insertions(+), 2 deletions(-)
 create mode 100644 bt5/erp5_mrp/SkinTemplateItem/portal_skins/erp5_mrp/SupplyChain_view/listbox_deliverable.xml
 create mode 100644 bt5/erp5_mrp/SkinTemplateItem/portal_skins/erp5_mrp/SupplyChain_view/listbox_title.xml

diff --git a/bt5/erp5_mrp/SkinTemplateItem/portal_skins/erp5_mrp/SupplyChain_view.xml b/bt5/erp5_mrp/SkinTemplateItem/portal_skins/erp5_mrp/SupplyChain_view.xml
index 8eb8fa8a52..65385c1a71 100644
--- a/bt5/erp5_mrp/SkinTemplateItem/portal_skins/erp5_mrp/SupplyChain_view.xml
+++ b/bt5/erp5_mrp/SkinTemplateItem/portal_skins/erp5_mrp/SupplyChain_view.xml
@@ -89,7 +89,9 @@
                 <item>
                     <key> <string>hidden</string> </key>
                     <value>
-                      <list/>
+                      <list>
+                        <string>listbox_deliverable</string>
+                      </list>
                     </value>
                 </item>
                 <item>
@@ -97,6 +99,7 @@
                     <value>
                       <list>
                         <string>my_title</string>
+                        <string>listbox_title</string>
                       </list>
                     </value>
                 </item>
diff --git a/bt5/erp5_mrp/SkinTemplateItem/portal_skins/erp5_mrp/SupplyChain_view/listbox.xml b/bt5/erp5_mrp/SkinTemplateItem/portal_skins/erp5_mrp/SupplyChain_view/listbox.xml
index cd37d85ff2..851dc7b6e2 100644
--- a/bt5/erp5_mrp/SkinTemplateItem/portal_skins/erp5_mrp/SupplyChain_view/listbox.xml
+++ b/bt5/erp5_mrp/SkinTemplateItem/portal_skins/erp5_mrp/SupplyChain_view/listbox.xml
@@ -23,6 +23,7 @@
                 <string>columns</string>
                 <string>selection_name</string>
                 <string>portal_types</string>
+                <string>editable_columns</string>
               </list>
             </value>
         </item>
@@ -110,6 +111,21 @@
                       </list>
                     </value>
                 </item>
+                <item>
+                    <key>                 <string>editable_columns</string> </key>
+                    <value>
+                      <list>
+                        <tuple>
+                          <string>title</string>
+                          <string>title</string>
+                        </tuple>
+                        <tuple>
+                          <string>deliverable</string>
+                          <string>deliverable</string>
+                        </tuple>
+                      </list>
+                    </value>
+                </item>
                 <item>
                     <key> <string>field_id</string> </key>
                     <value> <string>my_view_mode_listbox</string> </value>
diff --git a/bt5/erp5_mrp/SkinTemplateItem/portal_skins/erp5_mrp/SupplyChain_view/listbox_deliverable.xml b/bt5/erp5_mrp/SkinTemplateItem/portal_skins/erp5_mrp/SupplyChain_view/listbox_deliverable.xml
new file mode 100644
index 0000000000..2fba0fc38c
--- /dev/null
+++ b/bt5/erp5_mrp/SkinTemplateItem/portal_skins/erp5_mrp/SupplyChain_view/listbox_deliverable.xml
@@ -0,0 +1,93 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="ProxyField" module="Products.ERP5Form.ProxyField"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>_owner</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>listbox_deliverable</string> </value>
+        </item>
+        <item>
+            <key> <string>message_values</string> </key>
+            <value>
+              <dictionary>
+                <item>
+                    <key> <string>external_validator_failed</string> </key>
+                    <value> <string>The input failed the external validator.</string> </value>
+                </item>
+              </dictionary>
+            </value>
+        </item>
+        <item>
+            <key> <string>overrides</string> </key>
+            <value>
+              <dictionary>
+                <item>
+                    <key> <string>field_id</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>form_id</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>target</string> </key>
+                    <value> <string></string> </value>
+                </item>
+              </dictionary>
+            </value>
+        </item>
+        <item>
+            <key> <string>tales</string> </key>
+            <value>
+              <dictionary>
+                <item>
+                    <key> <string>field_id</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>form_id</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>target</string> </key>
+                    <value> <string></string> </value>
+                </item>
+              </dictionary>
+            </value>
+        </item>
+        <item>
+            <key> <string>values</string> </key>
+            <value>
+              <dictionary>
+                <item>
+                    <key> <string>field_id</string> </key>
+                    <value> <string>my_deliverable</string> </value>
+                </item>
+                <item>
+                    <key> <string>form_id</string> </key>
+                    <value> <string>SupplyLink_viewFieldLibrary</string> </value>
+                </item>
+                <item>
+                    <key> <string>target</string> </key>
+                    <value> <string>Click to edit the target</string> </value>
+                </item>
+              </dictionary>
+            </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/bt5/erp5_mrp/SkinTemplateItem/portal_skins/erp5_mrp/SupplyChain_view/listbox_title.xml b/bt5/erp5_mrp/SkinTemplateItem/portal_skins/erp5_mrp/SupplyChain_view/listbox_title.xml
new file mode 100644
index 0000000000..422b82ddcb
--- /dev/null
+++ b/bt5/erp5_mrp/SkinTemplateItem/portal_skins/erp5_mrp/SupplyChain_view/listbox_title.xml
@@ -0,0 +1,99 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="ProxyField" module="Products.ERP5Form.ProxyField"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>_owner</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>delegated_list</string> </key>
+            <value>
+              <list/>
+            </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>listbox_title</string> </value>
+        </item>
+        <item>
+            <key> <string>message_values</string> </key>
+            <value>
+              <dictionary>
+                <item>
+                    <key> <string>external_validator_failed</string> </key>
+                    <value> <string>The input failed the external validator.</string> </value>
+                </item>
+              </dictionary>
+            </value>
+        </item>
+        <item>
+            <key> <string>overrides</string> </key>
+            <value>
+              <dictionary>
+                <item>
+                    <key> <string>field_id</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>form_id</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>target</string> </key>
+                    <value> <string></string> </value>
+                </item>
+              </dictionary>
+            </value>
+        </item>
+        <item>
+            <key> <string>tales</string> </key>
+            <value>
+              <dictionary>
+                <item>
+                    <key> <string>field_id</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>form_id</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>target</string> </key>
+                    <value> <string></string> </value>
+                </item>
+              </dictionary>
+            </value>
+        </item>
+        <item>
+            <key> <string>values</string> </key>
+            <value>
+              <dictionary>
+                <item>
+                    <key> <string>field_id</string> </key>
+                    <value> <string>my_title</string> </value>
+                </item>
+                <item>
+                    <key> <string>form_id</string> </key>
+                    <value> <string>SupplyLink_viewFieldLibrary</string> </value>
+                </item>
+                <item>
+                    <key> <string>target</string> </key>
+                    <value> <string>Click to edit the target</string> </value>
+                </item>
+              </dictionary>
+            </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/bt5/erp5_mrp/bt/revision b/bt5/erp5_mrp/bt/revision
index 0e4c1b3f90..37c3b662e1 100644
--- a/bt5/erp5_mrp/bt/revision
+++ b/bt5/erp5_mrp/bt/revision
@@ -1 +1 @@
-226
\ No newline at end of file
+227
\ No newline at end of file
-- 
2.30.9