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

nobody at svn.erp5.org nobody at svn.erp5.org
Thu May 11 10:30:45 CEST 2006


Author: jerome
Date: Thu May 11 10:30:40 2006
New Revision: 7180

URL: http://svn.erp5.org?rev=7180&view=rev
Log:
Check delivery is not None before calling a getProperty on it


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=7180&r1=7179&r2=7180&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/InvoiceTransactionRule.py (original)
+++ erp5/trunk/products/ERP5/Document/InvoiceTransactionRule.py Thu May 11 10:30:40 2006
@@ -141,7 +141,8 @@
               while resource is None and \
                           simulation_movement != portal_simulation :
                 delivery = simulation_movement.getDeliveryValue()
-                resource = delivery.getProperty('price_currency', None)
+                if delivery is not None:
+                  resource = delivery.getProperty('price_currency', None)
                 if simulation_movement.getParentValue().getParentValue() \
                                           == portal_simulation :
                   # we are on the first simulation movement, we'll try




More information about the Erp5-report mailing list