<?xml version="1.0" encoding="utf-8" ?>
<!--
  Copyright 2017-2024 Akretion France (http://www.akretion.com/)
  @author: Alexis de Lattre <alexis.delattre@akretion.com>
  License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<odoo>
    <record id="bank_reconciliation_report_wizard_form" model="ir.ui.view">
        <field name="name">bank.reconciliation.report.wizard.form</field>
        <field name="model">bank.reconciliation.report.wizard</field>
        <field name="arch" type="xml">
            <form>
                <group name="main">
                    <field name="company_id" invisible="1" />
                    <field name="date" />
                    <field name="journal_ids" widget="many2many_tags" options="{'no_open': True, 'no_create': True}"/>
                    <field name="move_state" widget="radio"/>
                </group>
                <footer>
                    <button
                        name="%(account_bank_reconciliation_summary_xlsx.bank_reconciliation_xlsx)d"
                        string="Export XLSX"
                        type="action"
                        class="btn-primary"
                    />
                    <button special="cancel" string="Cancel" />
                </footer>
            </form>
        </field>
    </record>
    <record id="bank_reconciliation_report_wizard_action" model="ir.actions.act_window">
        <field name="name">Bank Reconciliation</field>
        <field name="res_model">bank.reconciliation.report.wizard</field>
        <field name="view_mode">form</field>
        <field name="target">new</field>
    </record>
    <menuitem
        id="menu_report_bank_root"
        parent="account.menu_finance_reports"
        name="Bank Reports"
        sequence="12"
    />
    <menuitem
        id="bank_reconciliation_report_wizard_menu"
        action="bank_reconciliation_report_wizard_action"
        parent="menu_report_bank_root"
        sequence="10"
    />
</odoo>
