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

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Sep 6 15:11:19 CEST 2006


Author: aurel
Date: Wed Sep  6 15:11:13 2006
New Revision: 9703

URL: http://svn.erp5.org?rev=9703&view=rev
Log:
check if property doesn't already exists

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=9703&r1=9702&r2=9703&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py Wed Sep  6 15:11:13 2006
@@ -565,7 +565,10 @@
     # the erp5 site
     self.portal = self.getPortal()
     # the default currency for the site
-    self.portal.manage_addProperty('reference_currency_id', 'EUR', type='string')
+    if not self.portal.hasProperty():
+      self.portal.manage_addProperty('reference_currency_id', 'EUR', type='string')
+    else:
+      self.portal.edit(reference_currency_id="EUR")
     # the person module
     self.person_module = self.getPersonModule()
     # the organisation module




More information about the Erp5-report mailing list