[FIX] backport from MP on upstream until 5f30c6ed09e92e53ad870d1fd54288ac43a4ca9e

This commit is contained in:
Laurent Mignon
2015-04-03 09:24:32 +02:00
committed by Laurent Mignon (ACSONE)
parent 1ebe98df79
commit 89afefc370

View File

@@ -193,7 +193,8 @@ class account_bank_statement_import(models.TransientModel):
@api.model
@api.returns('res.partner.bank')
def _create_bank_account(self, account_number, journal_id=False):
def _create_bank_account(self, account_number, company_id=False,
currency_id=False):
try:
bank_type = self.env.ref('base.bank_normal')
bank_code = bank_type.code