[Erp5-report] r31886 kazuhiko - /erp5/trunk/products/ERP5/tests/testInvoice.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Jan 21 16:44:18 CET 2010
Author: kazuhiko
Date: Thu Jan 21 16:44:16 2010
New Revision: 31886
URL: http://svn.erp5.org?rev=31886&view=rev
Log:
after changing 'resource', related simulation movement will be replaced with another id.
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=31886&r1=31885&r2=31886&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testInvoice.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testInvoice.py [utf8] Thu Jan 21 16:44:16 2010
@@ -558,6 +558,11 @@
order_line.setResourceValue(other_resource)
transaction.commit()
self.tic()
+ # after changing 'resource', related simulation movement will be
+ # replaced with another id, and we need to find the appropriate one
+ # here.
+ delivery_movement = related_applied_rule.contentValues()[0]
+ invoice_applied_rule = delivery_movement.contentValues()[0]
invoice_movement = invoice_applied_rule.contentValues()[0]
self.assertEquals(other_resource,
invoice_movement.getResourceValue())
More information about the Erp5-report
mailing list