[Erp5-report] r14030 - /erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Apr 9 18:11:04 CEST 2007


Author: seb
Date: Mon Apr  9 18:11:03 2007
New Revision: 14030

URL: http://svn.erp5.org?rev=14030&view=rev
Log:
do not define a new date if a date is already defined

Modified:
    erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py

Modified: erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py?rev=14030&r1=14029&r2=14030&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py Mon Apr  9 18:11:03 2007
@@ -693,7 +693,8 @@
     Compute and set the source reference for a document
     """
     # document must have a date defined
-    doc.edit(start_date=DateTime())
+    if doc.getStartDate() is None:
+      doc.edit(start_date=DateTime())
     # call script to set source reference
     doc.Baobab_getUniqueReference()
 




More information about the Erp5-report mailing list