From 5f4ca1f1cf7aa5228598b06a4bd0561b469d9a22 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Thu, 31 Jul 2008 14:05:21 +0000
Subject: [PATCH] fix wrong TALES on inventory line view. Quantity & Price
 should not be shown if line has cell content.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22784 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../InventoryLine_viewFieldLibrary/my_price.xml      |  6 +++---
 .../InventoryLine_viewFieldLibrary/my_quantity.xml   | 12 ++----------
 bt5/erp5_trade/bt/revision                           |  2 +-
 3 files changed, 6 insertions(+), 14 deletions(-)

diff --git a/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/InventoryLine_viewFieldLibrary/my_price.xml b/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/InventoryLine_viewFieldLibrary/my_price.xml
index d7b6ecb9f4..2f001b7523 100644
--- a/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/InventoryLine_viewFieldLibrary/my_price.xml
+++ b/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/InventoryLine_viewFieldLibrary/my_price.xml
@@ -57,7 +57,7 @@
             <value>
               <dictionary>
                 <item>
-                    <key> <string>enabled</string> </key>
+                    <key>                 <string>enabled</string> </key>
                     <value>
                       <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
                     </value>
@@ -75,7 +75,7 @@
                     <value> <string></string> </value>
                 </item>
                 <item>
-                    <key> <string>title</string> </key>
+                    <key>                 <string>title</string> </key>
                     <value> <string></string> </value>
                 </item>
               </dictionary>
@@ -122,7 +122,7 @@
       <dictionary>
         <item>
             <key> <string>_text</string> </key>
-            <value> <string>not: here/hasLineContent</string> </value>
+            <value> <string>not: here/hasCellContent</string> </value>
         </item>
       </dictionary>
     </pickle>
diff --git a/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/InventoryLine_viewFieldLibrary/my_quantity.xml b/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/InventoryLine_viewFieldLibrary/my_quantity.xml
index 963a38773a..37d60baf1f 100644
--- a/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/InventoryLine_viewFieldLibrary/my_quantity.xml
+++ b/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/InventoryLine_viewFieldLibrary/my_quantity.xml
@@ -56,7 +56,7 @@
             <value>
               <dictionary>
                 <item>
-                    <key> <string>enabled</string> </key>
+                    <key>                 <string>enabled</string> </key>
                     <value>
                       <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
                     </value>
@@ -80,10 +80,6 @@
             <key> <string>values</string> </key>
             <value>
               <dictionary>
-                <item>
-                    <key> <string>description</string> </key>
-                    <value> <string>Default quantity</string> </value>
-                </item>
                 <item>
                     <key> <string>enabled</string> </key>
                     <value> <int>1</int> </value>
@@ -100,10 +96,6 @@
                     <key> <string>target</string> </key>
                     <value> <string>Click to edit the target</string> </value>
                 </item>
-                <item>
-                    <key> <string>title</string> </key>
-                    <value> <string>Quantity</string> </value>
-                </item>
               </dictionary>
             </value>
         </item>
@@ -121,7 +113,7 @@
       <dictionary>
         <item>
             <key> <string>_text</string> </key>
-            <value> <string>not: here/hasLineContent</string> </value>
+            <value> <string>not: here/hasCellContent</string> </value>
         </item>
       </dictionary>
     </pickle>
diff --git a/bt5/erp5_trade/bt/revision b/bt5/erp5_trade/bt/revision
index 2da4325331..7d4983b989 100644
--- a/bt5/erp5_trade/bt/revision
+++ b/bt5/erp5_trade/bt/revision
@@ -1 +1 @@
-457
\ No newline at end of file
+458
\ No newline at end of file
-- 
2.30.9