[Erp5-report] r33065 kazuhiko - /erp5/trunk/products/ERP5/tests/testOrder.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Feb 24 02:59:44 CET 2010


Author: kazuhiko
Date: Wed Feb 24 02:59:43 2010
New Revision: 33065

URL: http://svn.erp5.org?rev=33065&view=rev
Log:
set payment condition instead of using business process directly as a specialise.

Modified:
    erp5/trunk/products/ERP5/tests/testOrder.py

Modified: erp5/trunk/products/ERP5/tests/testOrder.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testOrder.py?rev=33065&r1=33064&r2=33065&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testOrder.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testOrder.py [utf8] Wed Feb 24 02:59:43 2010
@@ -915,12 +915,7 @@
                 destination_payment_value = organisation2['bank'],
                 source_project_value = project1,
                 destination_project_value = project2 )
-    # XXX Specialise should be Trade Condition, not Business Process
-    # itself here.
-    business_process = getattr(self.portal.business_process_module,
-                               'test_business_process', None)
-    if business_process is not None:
-      order.edit(specialise_value=business_process)
+    order.setPaymentConditionEfficiency(1.0)
     self.failUnless('Site Error' not in order.view())
 
   def stepCheckDeliveryBuilding(self, sequence=None, sequence_list=None, **kw):




More information about the Erp5-report mailing list