[Erp5-report] r32495 kazuhiko - /erp5/trunk/products/ERP5/Document/InvoiceTransactionRule.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Feb 12 14:43:58 CET 2010


Author: kazuhiko
Date: Fri Feb 12 14:43:52 2010
New Revision: 32495

URL: http://svn.erp5.org?rev=32495&view=rev
Log:
variable section is used as an object later.

Modified:
    erp5/trunk/products/ERP5/Document/InvoiceTransactionRule.py

Modified: erp5/trunk/products/ERP5/Document/InvoiceTransactionRule.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/InvoiceTransactionRule.py?rev=32495&r1=32494&r2=32495&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/InvoiceTransactionRule.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/InvoiceTransactionRule.py [utf8] Fri Feb 12 14:43:52 2010
@@ -225,8 +225,8 @@
     precision = None
     section = prevision_line.get(arrow, None)
     if section is not None:
-      currency_url = self.restrictedTraverse(section).getProperty(
-          'price_currency', None)
+      section = self.restrictedTraverse(section)
+      currency_url = section.getProperty('price_currency', None)
     else:
       currency_url = None
     if currency_url is not None and prevision_currency != currency_url:




More information about the Erp5-report mailing list