<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2022 Moduon
     License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html). -->
<data>

    <record id="account_move_renumber_wizard_view_form" model="ir.ui.view">
        <field name="name">Renumber form</field>
        <field name="model">account.move.renumber.wizard</field>
        <field name="arch" type="xml">
            <form string="Renumber account entry numbers">
                <sheet>
                    <group colspan="4">
                        <field name="starting_date" />
                        <field name="starting_number" />
                        <field name="available_sequence_ids" invisible="1" />
                        <field name="sequence_id" />
                    </group>
                </sheet>
                <footer>
                    <button
                        name="action_renumber"
                        type="object"
                        string="Renumber"
                        class="btn-primary"
                        confirm="If you have already filed and legalized your journals with the competent authority, this action could change it. Continue?"
                    />
                    <button special="cancel" string="Cancel" class="btn-secondary" />
                </footer>
            </form>
        </field>
    </record>

    <record id="account_move_renumber_wizard_action" model="ir.actions.act_window">
        <field name="name">Renumber journal entries</field>
        <field name="res_model">account.move.renumber.wizard</field>
        <field name="view_mode">form</field>
        <field name="target">new</field>
    </record>

    <menuitem
        id="account_move_renumber_wizard_menu"
        parent="account.menu_finance_entries"
        action="account_move_renumber_wizard_action"
        sequence="85"
    />

</data>
