[Erp5-report] r32262 kazuhiko - /erp5/trunk/products/ERP5/tests/testERP5Simulation.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Feb 4 11:56:20 CET 2010


Author: kazuhiko
Date: Thu Feb  4 11:56:20 2010
New Revision: 32262

URL: http://svn.erp5.org?rev=32262&view=rev
Log:
configure business process to specify the account for bank.

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

Modified: erp5/trunk/products/ERP5/tests/testERP5Simulation.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testERP5Simulation.py?rev=32262&r1=32261&r2=32262&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testERP5Simulation.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testERP5Simulation.py [utf8] Thu Feb  4 11:56:20 2010
@@ -52,6 +52,13 @@
       if rule.getValidationState() == 'validated':
         rule.invalidate()
     self.validateNewRules()
+    self.setUpBusinessProcess()
+
+  def setUpBusinessProcess(self):
+    business_process = self.portal.business_process_module.erp5_default_business_process
+    pay_business_path = business_process['pay']
+    pay_business_path.setSource('account_module/bank')
+    pay_business_path.setDestination('account_module/bank')
 
   @UnrestrictedMethod
   def createInvoiceTransactionRule(self, resource=None):




More information about the Erp5-report mailing list