<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2024 ForgeFlow (http://www.forgeflow.com)
License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html). -->
<odoo>
    <record id="view_order_form_revert_credit_note" model="ir.ui.view">
        <field name="name">account.move.credit.note.reverse</field>
        <field name="model">account.move</field>
        <field name="inherit_id" ref="account.view_move_form" />
        <field name="arch" type="xml">
            <button name="action_reverse" position="after">
                <button
                    name="action_reverse"
                    string="Revert Credit Note"
                    type="object"
                    groups="account.group_account_invoice"
                    invisible="move_type != 'out_refund' or state != 'posted'"
                />
            </button>
        </field>
    </record>
</odoo>
