<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2024 Dixmit
     License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo>

    <record model="ir.ui.view" id="automation_configuration_test_form_view">
        <field name="model">automation.configuration.test</field>
        <field name="arch" type="xml">
            <form string="Test configuration">
                <sheet>

                    <div class="oe_title">
                        <h2><field
                                name="resource_ref"
                                required="1"
                                options="{'hide_model': True}"
                            /></h2>
                    </div>
                    <div class="row text-center">
                        On tests, mails will not be sent, but templates will be generated and actions will be executed.
                    </div>
                    <group>
                        <field name="configuration_id" invisible="1" />
                        <field name="model" invisible="1" />
                    </group>
                </sheet>
                <footer>
                    <button
                        name="test_record"
                        string="Test"
                        class="btn-primary"
                        type="object"
                    />
                    <button string="Cancel" class="btn-default" special="cancel" />
                </footer>
            </form>
        </field>
    </record>

    <record model="ir.actions.act_window" id="automation_configuration_test_act_window">
        <field name="name">Test Configuration</field>
        <field name="res_model">automation.configuration.test</field>
        <field name="view_mode">form</field>
        <field name="context">{'default_configuration_id': active_id}</field>
        <field name="target">new</field>
    </record>


</odoo>
