[Erp5-report] r44625 vincent - /erp5/trunk/bt5/erp5_banking_core/WorkflowTemplateItem/porta...

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Mar 25 15:24:43 CET 2011


Author: vincent
Date: Fri Mar 25 15:24:43 2011
New Revision: 44625

URL: http://svn.erp5.org?rev=44625&view=rev
Log:
Uniformise currency conversion code.

Modified:
    erp5/trunk/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/currency_exchange_line_workflow/scripts/checkSingleExchangeLine.xml

Modified: erp5/trunk/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/currency_exchange_line_workflow/scripts/checkSingleExchangeLine.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/currency_exchange_line_workflow/scripts/checkSingleExchangeLine.xml?rev=44625&r1=44624&r2=44625&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/currency_exchange_line_workflow/scripts/checkSingleExchangeLine.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/currency_exchange_line_workflow/scripts/checkSingleExchangeLine.xml [utf8] Fri Mar 25 15:24:43 2011
@@ -71,7 +71,10 @@ if exchange_line.getBasePrice() in (None
 \n
 \n
 # We have to looking for other currency exchanges lines\n
-temp_object = exchange_line.getParentValue().newContent(portal_type="Currency Exchange Line", temp_object=True)\n
+# Note: SupplyCell is the class of Currency Exchange Line portal type objects\n
+# But in reality, anything should do.\n
+from Products.ERP5Type.Document import newTempSupplyCell as newTemp\n
+temp_object = newTemp(context.getPortalObject(),\'temp_object\')\n
 start_date = exchange_line.getStartDate()\n
 temp_kw = {\'category_list\':[\'resource/%s\' % exchange_line.getParentValue().getRelativeUrl(),\n
                             \'price_currency/%s\' % exchange_line.getPriceCurrency()],\n
@@ -154,7 +157,8 @@ for line in line_list:\n
                             <string>None</string>
                             <string>msg</string>
                             <string>Products.ERP5Type.Document</string>
-                            <string>newTempBase</string>
+                            <string>newTempSupplyCell</string>
+                            <string>newTemp</string>
                             <string>context</string>
                             <string>temp_object</string>
                             <string>start_date</string>



More information about the Erp5-report mailing list