From 10a6228fb89b11d5e1a3fd664514bb9428db2ef6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Calonne?= <aurel@nexedi.com> Date: Wed, 6 Sep 2006 13:11:13 +0000 Subject: [PATCH] check if property doesn't already exists git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9703 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Banking/tests/TestERP5BankingMixin.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/product/ERP5Banking/tests/TestERP5BankingMixin.py b/product/ERP5Banking/tests/TestERP5BankingMixin.py index 018dde515f..9b387c8e7a 100644 --- a/product/ERP5Banking/tests/TestERP5BankingMixin.py +++ b/product/ERP5Banking/tests/TestERP5BankingMixin.py @@ -565,7 +565,10 @@ class TestERP5BankingMixin: # 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 -- 2.30.9