<?xml version="1.0" encoding="UTF-8" ?>
<odoo>

    <record id="wizard_fastapi_decrypt_errors_view_form" model="ir.ui.view">
        <field name="model">wizard.fastapi.decrypt.errors</field>
        <field name="arch" type="xml">
            <form string="Label">
                <group>
                    <field name="fastapi_endpoint_id" />
                    <field name="error" />
                    <field name="decrypted_error" />
                </group>
                <footer>
                    <button
                        name="action_decrypt_error"
                        string="Decrypt Error"
                        type="object"
                        class="oe_highlight"
                    />
                    <button string="Close" class="oe_link" special="cancel" />
                </footer>

            </form>
        </field>
    </record>

    <record
        id="wizard_fastapi_decrypt_errors_action_decrypt_error"
        model="ir.actions.act_window"
    >
        <field name="name">Decrypt Error</field>
        <field name="res_model">wizard.fastapi.decrypt.errors</field>
        <field name="type">ir.actions.act_window</field>
        <field name="view_mode">form</field>
        <field name="target">new</field>
        <field name="groups_id" eval="[(4, ref('fastapi.group_fastapi_manager'))]" />
    </record>

    <menuitem
        id="menu_fastapi_decrypt_errors"
        name="Decrypt Error"
        parent="fastapi.menu_fastapi_root"
        action="wizard_fastapi_decrypt_errors_action_decrypt_error"
        sequence="100"
    />

</odoo>
