[Erp5-report] r36859 kazuhiko - /erp5/trunk/products/ERP5/tests/testInvoice.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Jul 5 13:19:03 CEST 2010
Author: kazuhiko
Date: Mon Jul 5 13:19:03 2010
New Revision: 36859
URL: http://svn.erp5.org?rev=36859&view=rev
Log:
change the way to detect if new simulation API is used or not.
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=36859&r1=36858&r2=36859&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testInvoice.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testInvoice.py [utf8] Mon Jul 5 13:19:03 2010
@@ -3456,7 +3456,8 @@ class TestSaleInvoice(TestSaleInvoiceMix
invoice_line.getDeliveryRelatedValue(portal_type='Simulation Movement'
).getQuantity())
- if self.portal._getOb('portal_solvers', None) is not None:
+ if invoice_line.getDeliveryRelatedValue().getParentValue().getSpecialiseId() == \
+ 'new_invoice_simulation_rule':
# With new simulation solvers, changes on simulation movements will
# not backtrack.
pass
More information about the Erp5-report
mailing list