<?xml version="1.0" ?>
<!--
  Copyright 2004-2020 Odoo S.A.
  Copyright 2020 Akretion France (http://www.akretion.com/)
  @author: Alexis de Lattre <alexis.delattre@akretion.com>
  Licence LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl-3.0).
-->
<odoo>

    <record id="journal_dashboard_view_inherit" model="ir.ui.view">
        <field name="model">account.journal</field>
        <field name="inherit_id" ref="account.account_journal_dashboard_kanban_view" />
        <field name="arch" type="xml">
            <!--
                We need to add the create tag in order to show buttons.
                However, we will change them using the JS definition.
            -->
            <kanban position="attributes">
                <attribute name="create">1</attribute>
            </kanban>
            <xpath expr='//span[@name="button_import_placeholder"]' position='inside'>
                <span>or <a
                        type="object"
                        name="import_account_statement"
                    >Import (OCA)</a></span>
            </xpath>
            <xpath expr='//div[@name="bank_cash_commands"]' position="before">
                <div t-if="journal_type == 'bank'">
                    <a
                        type="object"
                        name="import_account_statement"
                    >Import Statement (OCA)</a>
                </div>
            </xpath>
        </field>
    </record>

</odoo>
