[Erp5-report] r11563 - in /erp5/trunk/bt5/erp5_accounting_l10n_fr_m9: SkinTemplateItem/port...

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Nov 30 19:45:45 CET 2006


Author: jerome
Date: Thu Nov 30 19:45:42 2006
New Revision: 11563

URL: http://svn.erp5.org?rev=11563&view=rev
Log:
InvoiceTransmissionSheet_viewRelatedPaymentTransactionList:
  set the list action link to the accounting module showing all payments 
InvoiceTransmissionSheet_getRelatedPaymentTransactionList:
  use a request cache, because the list action URL will call the list method again


Modified:
    erp5/trunk/bt5/erp5_accounting_l10n_fr_m9/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr_m9/InvoiceTransmissionSheet_getRelatedPaymentTransactionList.xml
    erp5/trunk/bt5/erp5_accounting_l10n_fr_m9/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr_m9/InvoiceTransmissionSheet_viewRelatedPaymentTransactionList/listbox.xml
    erp5/trunk/bt5/erp5_accounting_l10n_fr_m9/bt/revision

Modified: erp5/trunk/bt5/erp5_accounting_l10n_fr_m9/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr_m9/InvoiceTransmissionSheet_getRelatedPaymentTransactionList.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting_l10n_fr_m9/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr_m9/InvoiceTransmissionSheet_getRelatedPaymentTransactionList.xml?rev=11563&r1=11562&r2=11563&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting_l10n_fr_m9/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr_m9/InvoiceTransmissionSheet_getRelatedPaymentTransactionList.xml (original)
+++ erp5/trunk/bt5/erp5_accounting_l10n_fr_m9/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr_m9/InvoiceTransmissionSheet_getRelatedPaymentTransactionList.xml Thu Nov 30 19:45:42 2006
@@ -71,13 +71,17 @@
             <value> <string>"""Returns a list of payment transactions related to invoice "contained" by\n
 this transmission sheet.\n
 """\n
-\n
+cached_result = context.REQUEST.other.get(script.getId())\n
+if cached_result:\n
+  return cached_result\n
+  \n
 related_payment_transaction_list = []\n
 for invoice in context.getAggregateRelatedValueList(\n
           portal_type=context.getPortalInvoiceTypeList()):\n
   related_payment_transaction_list.extend(\n
     invoice.getCausalityRelatedValueList(portal_type=\'Payment Transaction\'))\n
 \n
+context.REQUEST.other[script.getId()] = related_payment_transaction_list\n
 return related_payment_transaction_list\n
 </string> </value>
         </item>
@@ -122,11 +126,14 @@
                         <value>
                           <tuple>
                             <string>kw</string>
+                            <string>_getattr_</string>
+                            <string>context</string>
+                            <string>script</string>
+                            <string>cached_result</string>
                             <string>related_payment_transaction_list</string>
                             <string>_getiter_</string>
-                            <string>_getattr_</string>
-                            <string>context</string>
                             <string>invoice</string>
+                            <string>_write_</string>
                           </tuple>
                         </value>
                     </item>

Modified: erp5/trunk/bt5/erp5_accounting_l10n_fr_m9/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr_m9/InvoiceTransmissionSheet_viewRelatedPaymentTransactionList/listbox.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting_l10n_fr_m9/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr_m9/InvoiceTransmissionSheet_viewRelatedPaymentTransactionList/listbox.xml?rev=11563&r1=11562&r2=11563&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting_l10n_fr_m9/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr_m9/InvoiceTransmissionSheet_viewRelatedPaymentTransactionList/listbox.xml (original)
+++ erp5/trunk/bt5/erp5_accounting_l10n_fr_m9/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr_m9/InvoiceTransmissionSheet_viewRelatedPaymentTransactionList/listbox.xml Thu Nov 30 19:45:42 2006
@@ -248,7 +248,9 @@
                 </item>
                 <item>
                     <key> <string>list_action</string> </key>
-                    <value> <string></string> </value>
+                    <value>
+                      <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+                    </value>
                 </item>
                 <item>
                     <key> <string>list_method</string> </key>
@@ -256,6 +258,10 @@
                 </item>
                 <item>
                     <key> <string>meta_types</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>page_template</string> </key>
                     <value> <string></string> </value>
                 </item>
                 <item>
@@ -456,7 +462,7 @@
                 <item>
                     <key> <string>list_method</string> </key>
                     <value>
-                      <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+                      <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
                     </value>
                 </item>
                 <item>
@@ -542,6 +548,29 @@
     </pickle>
   </record>
   <record id="2" aka="AAAAAAAAAAI=">
+    <pickle>
+      <tuple>
+        <tuple>
+          <string>Products.Formulator.TALESField</string>
+          <string>TALESMethod</string>
+        </tuple>
+        <none/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>_text</string> </key>
+            <value> <string encoding="cdata"><![CDATA[
+
+python:"accounting_module/view?reset:int=1&" + modules[\'ZTUtils\'].make_query(uid=[x.getUid() for x in here.InvoiceTransmissionSheet_getRelatedPaymentTransactionList()])
+
+]]></string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="3" aka="AAAAAAAAAAM=">
     <pickle>
       <tuple>
         <tuple>

Modified: erp5/trunk/bt5/erp5_accounting_l10n_fr_m9/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting_l10n_fr_m9/bt/revision?rev=11563&r1=11562&r2=11563&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting_l10n_fr_m9/bt/revision (original)
+++ erp5/trunk/bt5/erp5_accounting_l10n_fr_m9/bt/revision Thu Nov 30 19:45:42 2006
@@ -1,1 +1,1 @@
-52
+53




More information about the Erp5-report mailing list