From 4b9b8e39840b283b15dea7d00a4d5103e158cfb0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Fri, 17 Nov 2006 16:49:33 +0000
Subject: [PATCH] Make Invoice Transmission Sheet use Delivery Class Show
 delivery.start_date in the listbox for search & sort

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11363 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../Invoice%20Transmission%20Sheet.xml        |  4 +-
 .../listbox.xml                               | 68 +++++++++----------
 bt5/erp5_accounting_l10n_fr_m9/bt/revision    |  2 +-
 3 files changed, 37 insertions(+), 37 deletions(-)

diff --git a/bt5/erp5_accounting_l10n_fr_m9/PortalTypeTemplateItem/portal_types/Invoice%20Transmission%20Sheet.xml b/bt5/erp5_accounting_l10n_fr_m9/PortalTypeTemplateItem/portal_types/Invoice%20Transmission%20Sheet.xml
index abb3be9d7e..205f93272d 100644
--- a/bt5/erp5_accounting_l10n_fr_m9/PortalTypeTemplateItem/portal_types/Invoice%20Transmission%20Sheet.xml
+++ b/bt5/erp5_accounting_l10n_fr_m9/PortalTypeTemplateItem/portal_types/Invoice%20Transmission%20Sheet.xml
@@ -64,7 +64,7 @@
         </item>
         <item>
             <key> <string>content_meta_type</string> </key>
-            <value> <string>ERP5 Document</string> </value>
+            <value> <string>ERP5 Delivery</string> </value>
         </item>
         <item>
             <key> <string>description</string> </key>
@@ -72,7 +72,7 @@
         </item>
         <item>
             <key> <string>factory</string> </key>
-            <value> <string>addDocument</string> </value>
+            <value> <string>addDelivery</string> </value>
         </item>
         <item>
             <key> <string>filter_content_types</string> </key>
diff --git a/bt5/erp5_accounting_l10n_fr_m9/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr_m9/InvoiceTransmissionSheetModule_viewInvoiceTransmissionSheetList/listbox.xml b/bt5/erp5_accounting_l10n_fr_m9/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr_m9/InvoiceTransmissionSheetModule_viewInvoiceTransmissionSheetList/listbox.xml
index 31c458bf44..1bd599e8a2 100644
--- a/bt5/erp5_accounting_l10n_fr_m9/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr_m9/InvoiceTransmissionSheetModule_viewInvoiceTransmissionSheetList/listbox.xml
+++ b/bt5/erp5_accounting_l10n_fr_m9/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr_m9/InvoiceTransmissionSheetModule_viewInvoiceTransmissionSheetList/listbox.xml
@@ -316,32 +316,7 @@
                 <item>
                     <key> <string>all_columns</string> </key>
                     <value>
-                      <list>
-                        <tuple>
-                          <string>id</string>
-                          <string>ID</string>
-                        </tuple>
-                        <tuple>
-                          <string>title</string>
-                          <string>Transmission Sheet Reference</string>
-                        </tuple>
-                        <tuple>
-                          <string>origin_title</string>
-                          <string>Transmission Sheet Origin</string>
-                        </tuple>
-                        <tuple>
-                          <string>description</string>
-                          <string>Description</string>
-                        </tuple>
-                        <tuple>
-                          <string>start_date</string>
-                          <string>Emission Date</string>
-                        </tuple>
-                        <tuple>
-                          <string>translated_validation_state_title</string>
-                          <string>State</string>
-                        </tuple>
-                      </list>
+                      <list/>
                     </value>
                 </item>
                 <item>
@@ -367,7 +342,7 @@
                           <string>Transmission Sheet Origin</string>
                         </tuple>
                         <tuple>
-                          <string>start_date</string>
+                          <string>delivery.start_date</string>
                           <string>Emission Date</string>
                         </tuple>
                         <tuple>
@@ -520,8 +495,8 @@
                           <string>Description</string>
                         </tuple>
                         <tuple>
-                          <string>start_date</string>
-                          <string>Creation Date</string>
+                          <string>delivery.start_date</string>
+                          <string>Emission Date</string>
                         </tuple>
                         <tuple>
                           <string>translated_validation_state_title</string>
@@ -536,19 +511,19 @@
                 </item>
                 <item>
                     <key> <string>selection_name</string> </key>
-                    <value> <string>purchase_invoice_transmission_sheet_odule</string> </value>
+                    <value> <string>purchase_invoice_transmission_sheet_module</string> </value>
                 </item>
                 <item>
                     <key> <string>sort</string> </key>
                     <value>
                       <list>
                         <tuple>
-                          <string>creation_date</string>
-                          <string>Creation Date</string>
+                          <string>delivery.start_date</string>
+                          <string>Emission Date</string>
                         </tuple>
                         <tuple>
                           <string>title</string>
-                          <string>ascending int</string>
+                          <string>Transmission Sheet Reference</string>
                         </tuple>
                       </list>
                     </value>
@@ -556,7 +531,32 @@
                 <item>
                     <key> <string>sort_columns</string> </key>
                     <value>
-                      <list/>
+                      <list>
+                        <tuple>
+                          <string>id</string>
+                          <string>Transmission Sheet Number</string>
+                        </tuple>
+                        <tuple>
+                          <string>title</string>
+                          <string>Transmission Sheet Reference</string>
+                        </tuple>
+                        <tuple>
+                          <string>origin_title</string>
+                          <string>Transmission Sheet Origin</string>
+                        </tuple>
+                        <tuple>
+                          <string>description</string>
+                          <string>Description</string>
+                        </tuple>
+                        <tuple>
+                          <string>delivery.start_date</string>
+                          <string>Emission Date</string>
+                        </tuple>
+                        <tuple>
+                          <string>translated_validation_state_title</string>
+                          <string>State</string>
+                        </tuple>
+                      </list>
                     </value>
                 </item>
                 <item>
diff --git a/bt5/erp5_accounting_l10n_fr_m9/bt/revision b/bt5/erp5_accounting_l10n_fr_m9/bt/revision
index aaa6442fe9..f70d7bba4a 100644
--- a/bt5/erp5_accounting_l10n_fr_m9/bt/revision
+++ b/bt5/erp5_accounting_l10n_fr_m9/bt/revision
@@ -1 +1 @@
-41
\ No newline at end of file
+42
\ No newline at end of file
-- 
2.30.9