[Erp5-report] r30689 - /erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Nov 17 14:49:05 CET 2009
Author: vincent
Date: Tue Nov 17 14:49:04 2009
New Revision: 30689
URL: http://svn.erp5.org?rev=30689&view=rev
Log:
Use createBankAccount to create organisation bank account.
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=30689&r1=30688&r2=30689&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py [utf8] (original)
+++ erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py [utf8] Tue Nov 17 14:49:04 2009
@@ -582,15 +582,17 @@
function='banking')
site_reference = site_reference_from_codification_dict.get(codification)
if site_reference is not None:
- bank_account = organisation.newContent(
- portal_type='Bank Account',
+ self.createBankAccount(
+ person=organisation,
+ account_id='account_%s' % (codification, ),
+ currency=self.currency_1,
+ amount=0,
bank_country_code=site_reference[0],
bank_code=site_reference[1],
branch=site_reference[2],
bank_account_number=site_reference[3],
- bank_account_key=site_reference[4], # XXX: Should be computed from other parts of site_reference
+ bank_account_key=site_reference[4],
)
- bank_account.validate()
self.vault_type_base_category = getattr(self.category_tool, 'vault_type')
site_vault_type = self.vault_type_base_category.newContent(id='site')
More information about the Erp5-report
mailing list