[Erp5-report] r11488 - in /erp5/trunk/bt5/erp5_accounting: SkinTemplateItem/portal_skins/er...
nobody at svn.erp5.org
nobody at svn.erp5.org
Sat Nov 25 12:56:17 CET 2006
Author: jerome
Date: Sat Nov 25 12:56:04 2006
New Revision: 11488
URL: http://svn.erp5.org?rev=11488&view=rev
Log:
activate a method on the module it self in AccountingTransactionModule_createRelatedPaymentTransactionList, so that the user can see when this task is finished
Modified:
erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_createRelatedPaymentTransactionList.xml
erp5/trunk/bt5/erp5_accounting/bt/revision
Modified: erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_createRelatedPaymentTransactionList.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_createRelatedPaymentTransactionList.xml?rev=11488&r1=11487&r2=11488&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_createRelatedPaymentTransactionList.xml (original)
+++ erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_createRelatedPaymentTransactionList.xml Sat Nov 25 12:56:04 2006
@@ -98,10 +98,12 @@
context.absolute_url(), N_(\n
\'Refusing to process more than 100 objects, check your selection\')))\n
\n
+tag = \'payment_creation_%s\' % portal.portal_ids.generateNewLongId()\n
activated = 0\n
for obj in object_list:\n
if obj.portal_type in invoice_type_list:\n
- obj.getObject().activate().Invoice_createRelatedPaymentTransaction(node=node,\n
+ obj.getObject().activate(tag=tag).Invoice_createRelatedPaymentTransaction(\n
+ node=node,\n
payment_mode=payment_mode,\n
payment=payment,\n
batch_mode=1)\n
@@ -111,12 +113,17 @@
return context.REQUEST.RESPONSE.redirect(\n
"%s/view?portal_status_message=%s" % (\n
context.absolute_url(), N_(\'No Invoice in your selection\')))\n
- \n
+\n
+# activate something on the folder\n
+context.activate(after_tag=tag).getTitle()\n
+\n
return context.REQUEST.RESPONSE.redirect(\n
"%s/view?portal_status_message=%s" % (\n
context.absolute_url(), N_(\n
- \'Payments Creation for ${activated_invoice_count} on ${total_selection_count} Invoices in Progress\',\n
- mapping=dict(activated_invoice_count=activated, total_selection_count=len(object_list)))))\n
+ \'Payments Creation for ${activated_invoice_count} on\'\n
+ \' ${total_selection_count} Invoices in Progress\',\n
+ mapping=dict(activated_invoice_count=activated,\n
+ total_selection_count=len(object_list)))))\n
]]></string> </value>
@@ -185,6 +192,7 @@
<string>object_list</string>
<string>dict</string>
<string>len</string>
+ <string>tag</string>
<string>activated</string>
<string>obj</string>
</tuple>
Modified: erp5/trunk/bt5/erp5_accounting/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/bt/revision?rev=11488&r1=11487&r2=11488&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/bt/revision (original)
+++ erp5/trunk/bt5/erp5_accounting/bt/revision Sat Nov 25 12:56:04 2006
@@ -1,1 +1,1 @@
-135
+136
More information about the Erp5-report
mailing list