'This function creates bank journals and its accounts for each line encoded in the field bank_account_ids of the
wizard (which is currently only used to create a default bank and cash journal when the CoA is installed).
:param company: the company for which the wizard is running.
:param acc_template_ref: the dictionary containing the mapping between the ids of account templates and the ids
of the accounts that have been generated from them.'

@api.multi
def _create_bank_journals_from_o2m(self, company, acc_template_ref):

    self.ensure_one()
    for acc in self.bank_account_ids:
        self.env['account.journal'].create({'name': acc.acc_name, 'type': acc.account_type, 'company_id': company.id, 'currency_id': acc.currency_id.id, 'sequence': 10})
