(self, company, acc_template_ref)
return bank_journals
This function creates bank journals and their account for each line
        data returned by the function _get_default_bank_journals_data.

        :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.
This function creates bank journals and their account for each line
        data returned by the function _get_default_bank_journals_data.
This function creates bank journals and their account for each line data returned by the function _get_default_bank_journals_data .
def _create_bank_journals(self, company, acc_template_ref):
        '''
        This function creates bank journals and their account for each line
        data returned by the function _get_default_bank_journals_data.

        :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.
        '''
        self.ensure_one()
        bank_journals = self.env['account.journal']
        # Create the journals that will trigger the account.account creation
        for acc in self._get_default_bank_journals_data():
            bank_journals += self.env['account.journal'].create({
                'name': acc['acc_name'],
                'type': acc['account_type'],
                'company_id': company.id,
                'currency_id': acc.get('currency_id', self.env['res.currency']).id,
                'sequence': 10,
            })

        return bank_journals
def _create_bank_journals ( self , company , acc_template_ref ) : self . ensure_one ( ) bank_journals = self . env [ 'account.journal' ] # Create the journals that will trigger the account.account creation for acc in self . _get_default_bank_journals_data ( ) : bank_journals += self . env [ 'account.journal' ] . create ( { 'name' : acc [ 'acc_name' ] , 'type' : acc [ 'account_type' ] , 'company_id' : company . id , 'currency_id' : acc . get ( 'currency_id' , self . env [ 'res.currency' ] ) . id , 'sequence' : 10 , } ) return bank_journals