[Erp5-report] r27876 - /erp5/trunk/products/ERP5/tests/testInvoice.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Jul 2 17:41:02 CEST 2009
Author: luke
Date: Thu Jul 2 17:40:59 2009
New Revision: 27876
URL: http://svn.erp5.org?rev=27876&view=rev
Log:
- fetch list of rules by explicitly checking its specialisation portal type
Modified:
erp5/trunk/products/ERP5/tests/testInvoice.py
Modified: erp5/trunk/products/ERP5/tests/testInvoice.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testInvoice.py?rev=27876&r1=27875&r2=27876&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testInvoice.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testInvoice.py [utf8] Thu Jul 2 17:40:59 2009
@@ -269,7 +269,10 @@
simulation_movement_list = invoicing_rule.objectValues()
self.assertNotEquals(len(simulation_movement_list), 0)
for simulation_movement in simulation_movement_list :
- invoice_transaction_rule_list.extend(simulation_movement.objectValues())
+ invoice_transaction_rule_list.extend([applied_rule for applied_rule
+ in simulation_movement.objectValues() if applied_rule \
+ .getSpecialiseValue().getPortalType()
+ == 'Invoice Transaction Rule'])
resource_list = sequence.get('resource_list')
self.assertEquals(simulation_movement.getPortalType(),
'Simulation Movement')
More information about the Erp5-report
mailing list