'Process the file chosen in the wizard, create bank statement(s) and go to reconciliation.'

@api.multi
def import_file(self):

    self.ensure_one()
    (currency_code, account_number, stmts_vals) = self.with_context(active_id=self.ids[0])._parse_file(base64.b64decode(self.data_file))
    self._check_parsed_data(stmts_vals)
    (currency, journal) = self._find_additional_data(currency_code, account_number)
    if (not journal):
        return self.with_context(active_id=self.ids[0])._journal_creation_wizard(currency, account_number)
    if ((not journal.default_debit_account_id) or (not journal.default_credit_account_id)):
        raise UserError((_('You    have    to    set    a    Default    Debit    Account    and    a    Default    Credit    Account    for    the    journal:    %s') % (journal.name,)))
    stmts_vals = self._complete_stmts_vals(stmts_vals, journal, account_number)
    (statement_ids, notifications) = self._create_bank_statements(stmts_vals)
    journal.bank_statements_source = 'file_import'
    action = self.env.ref('account.action_bank_reconcile_bank_statements')
    return {'name': action.name, 'tag': action.tag, 'context': {'statement_ids': statement_ids, 'notifications': notifications}, 'type': 'ir.actions.client'}
