[Erp5-report] r23774 - /erp5/trunk/products/ERP5/tests/testAccounting.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Sep 24 09:39:29 CEST 2008


Author: jerome
Date: Wed Sep 24 09:39:22 2008
New Revision: 23774

URL: http://svn.erp5.org?rev=23774&view=rev
Log:
the transaction tested in test_AccountingTransactionValidationSection was not
valid for destination section. Fix the test

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

Modified: erp5/trunk/products/ERP5/tests/testAccounting.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testAccounting.py?rev=23774&r1=23773&r2=23774&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testAccounting.py (original)
+++ erp5/trunk/products/ERP5/tests/testAccounting.py Wed Sep 24 09:39:22 2008
@@ -3102,11 +3102,7 @@
         'stop_action')
     # mirror section can be set only on the line
     for line in transaction.getMovementList() :
-      if line.getSourceValue().isMemberOf(
-              'account_type/asset/receivable') or \
-         line.getSourceValue().isMemberOf(
-              'account_type/liability/payable') :
-        line.setDestinationSection(old_destination_section)
+      line.setDestinationSection(old_destination_section)
     try:
       self.getWorkflowTool().doActionFor(transaction, 'stop_action')
       self.assertEquals(transaction.getSimulationState(), 'stopped')




More information about the Erp5-report mailing list