From 537eb0669da2918e33d0f59af0792d70cabe453b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Aur=C3=A9lien=20Calonne?= <aurel@nexedi.com>
Date: Fri, 31 Aug 2007 13:34:55 +0000
Subject: [PATCH] fix definition about portal type's properties in bt pass
 fast=0 to all getTotalPrice on document

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15987 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../base_category_list.xml                    |  3 --
 .../property_sheet_list.xml                   |  1 -
 .../CashDeliveryLine_view/my_total_price.xml  | 40 ++++++++++++-------
 .../DeliveryCell_view/my_total_price.xml      | 20 +++++++++-
 bt5/erp5_banking_core/bt/comment              |  0
 bt5/erp5_banking_core/bt/revision             |  2 +-
 .../template_portal_type_base_category_list   |  1 -
 .../template_portal_type_property_sheet_list  |  1 -
 8 files changed, 46 insertions(+), 22 deletions(-)
 create mode 100644 bt5/erp5_banking_core/bt/comment

diff --git a/bt5/erp5_banking_core/PortalTypeBaseCategoryTemplateItem/base_category_list.xml b/bt5/erp5_banking_core/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
index 614ade7db3..520e1d288b 100644
--- a/bt5/erp5_banking_core/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
+++ b/bt5/erp5_banking_core/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
@@ -5,9 +5,6 @@
  <portal_type id="Accounting Date">
   <item>site</item>
  </portal_type>
- <portal_type id="Banking Operation Line">
-  <item>aggregate_resource</item>
- </portal_type>
  <portal_type id="Cash Delivery Cell">
   <item>variation</item>
  </portal_type>
diff --git a/bt5/erp5_banking_core/PortalTypePropertySheetTemplateItem/property_sheet_list.xml b/bt5/erp5_banking_core/PortalTypePropertySheetTemplateItem/property_sheet_list.xml
index c095df5e72..d19c8fa36d 100644
--- a/bt5/erp5_banking_core/PortalTypePropertySheetTemplateItem/property_sheet_list.xml
+++ b/bt5/erp5_banking_core/PortalTypePropertySheetTemplateItem/property_sheet_list.xml
@@ -45,7 +45,6 @@
   <item>Arrow</item>
   <item>VariationRange</item>
   <item>Task</item>
-  <item>Checkbook</item>
  </portal_type>
  <portal_type id="Checkbook Model">
   <item>CheckModel</item>
diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDeliveryLine_view/my_total_price.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDeliveryLine_view/my_total_price.xml
index 40db1d0220..5c47b86db9 100644
--- a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDeliveryLine_view/my_total_price.xml
+++ b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDeliveryLine_view/my_total_price.xml
@@ -123,7 +123,9 @@
                 </item>
                 <item>
                     <key> <string>default</string> </key>
-                    <value> <string></string> </value>
+                    <value>
+                      <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+                    </value>
                 </item>
                 <item>
                     <key> <string>description</string> </key>
@@ -160,13 +162,13 @@
                 <item>
                     <key> <string>input_style</string> </key>
                     <value>
-                      <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+                      <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
                     </value>
                 </item>
                 <item>
                     <key> <string>precision</string> </key>
                     <value>
-                      <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
+                      <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
                     </value>
                 </item>
                 <item>
@@ -261,18 +263,15 @@
   <record id="2" aka="AAAAAAAAAAI=">
     <pickle>
       <tuple>
-        <tuple>
-          <string>Products.Formulator.TALESField</string>
-          <string>TALESMethod</string>
-        </tuple>
-        <none/>
+        <global name="TALESMethod" module="Products.Formulator.TALESField"/>
+        <tuple/>
       </tuple>
     </pickle>
     <pickle>
       <dictionary>
         <item>
             <key> <string>_text</string> </key>
-            <value> <string>string:-1 234.5 | preferences/getPreferredMoneyQuantityStyle</string> </value>
+            <value> <string>python: here.getTotalPrice(fast=0)</string> </value>
         </item>
       </dictionary>
     </pickle>
@@ -280,11 +279,24 @@
   <record id="3" aka="AAAAAAAAAAM=">
     <pickle>
       <tuple>
-        <tuple>
-          <string>Products.Formulator.TALESField</string>
-          <string>TALESMethod</string>
-        </tuple>
-        <none/>
+        <global name="TALESMethod" module="Products.Formulator.TALESField"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>_text</string> </key>
+            <value> <string>string:-1 234.5 | preferences/getPreferredMoneyQuantityStyle</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="4" aka="AAAAAAAAAAQ=">
+    <pickle>
+      <tuple>
+        <global name="TALESMethod" module="Products.Formulator.TALESField"/>
+        <tuple/>
       </tuple>
     </pickle>
     <pickle>
diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/DeliveryCell_view/my_total_price.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/DeliveryCell_view/my_total_price.xml
index 7d986a19c2..704ce64413 100644
--- a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/DeliveryCell_view/my_total_price.xml
+++ b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/DeliveryCell_view/my_total_price.xml
@@ -123,7 +123,9 @@
                 </item>
                 <item>
                     <key> <string>default</string> </key>
-                    <value> <string></string> </value>
+                    <value>
+                      <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+                    </value>
                 </item>
                 <item>
                     <key> <string>description</string> </key>
@@ -254,4 +256,20 @@
       </dictionary>
     </pickle>
   </record>
+  <record id="2" aka="AAAAAAAAAAI=">
+    <pickle>
+      <tuple>
+        <global name="TALESMethod" module="Products.Formulator.TALESField"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>_text</string> </key>
+            <value> <string>python: here.getTotalPrice(fast=0)</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
 </ZopeData>
diff --git a/bt5/erp5_banking_core/bt/comment b/bt5/erp5_banking_core/bt/comment
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/bt5/erp5_banking_core/bt/revision b/bt5/erp5_banking_core/bt/revision
index 235adf8bd8..52f6c1a7a0 100644
--- a/bt5/erp5_banking_core/bt/revision
+++ b/bt5/erp5_banking_core/bt/revision
@@ -1 +1 @@
-349
\ No newline at end of file
+352
\ No newline at end of file
diff --git a/bt5/erp5_banking_core/bt/template_portal_type_base_category_list b/bt5/erp5_banking_core/bt/template_portal_type_base_category_list
index 4c15495299..9786ed7ae5 100644
--- a/bt5/erp5_banking_core/bt/template_portal_type_base_category_list
+++ b/bt5/erp5_banking_core/bt/template_portal_type_base_category_list
@@ -1,6 +1,5 @@
 Accounting Cancellation | site
 Accounting Date | site
-Banking Operation Line | aggregate_resource
 Cash Delivery Cell | variation
 Check Model Type Variation | check_type
 Check Operation Line | aggregate_resource
diff --git a/bt5/erp5_banking_core/bt/template_portal_type_property_sheet_list b/bt5/erp5_banking_core/bt/template_portal_type_property_sheet_list
index d34b9e7aa1..62fdee2d79 100644
--- a/bt5/erp5_banking_core/bt/template_portal_type_property_sheet_list
+++ b/bt5/erp5_banking_core/bt/template_portal_type_property_sheet_list
@@ -23,7 +23,6 @@ Check | Task
 Checkbook Model Check Amount Variation | Amount
 Checkbook Model | CheckModel
 Checkbook | Arrow
-Checkbook | Checkbook
 Checkbook | Task
 Checkbook | VariationRange
 Counter Date | Reference
-- 
2.30.9