Commit a80a5c22 authored by Vincent Pelletier's avatar Vincent Pelletier

Use createBankAccount to create organisation bank account.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30689 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 724080e6
...@@ -582,15 +582,17 @@ class TestERP5BankingMixin(ERP5TypeTestCase): ...@@ -582,15 +582,17 @@ class TestERP5BankingMixin(ERP5TypeTestCase):
function='banking') function='banking')
site_reference = site_reference_from_codification_dict.get(codification) site_reference = site_reference_from_codification_dict.get(codification)
if site_reference is not None: if site_reference is not None:
bank_account = organisation.newContent( self.createBankAccount(
portal_type='Bank Account', person=organisation,
account_id='account_%s' % (codification, ),
currency=self.currency_1,
amount=0,
bank_country_code=site_reference[0], bank_country_code=site_reference[0],
bank_code=site_reference[1], bank_code=site_reference[1],
branch=site_reference[2], branch=site_reference[2],
bank_account_number=site_reference[3], 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') self.vault_type_base_category = getattr(self.category_tool, 'vault_type')
site_vault_type = self.vault_type_base_category.newContent(id='site') site_vault_type = self.vault_type_base_category.newContent(id='site')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment