<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <!-- Vista de lista de recetas -->
    <record id="view_skeen_receta_tree" model="ir.ui.view">
        <field name="name">skeen.receta.tree</field>
        <field name="model">skeen.receta</field>
        <field name="arch" type="xml">
            <tree>
                <field name="name"/>
                <field name="categoria"/>
                <field name="active"/>
            </tree>
        </field>
    </record>

    <!-- Vista de formulario de recetas -->
    <record id="view_skeen_receta_form" model="ir.ui.view">
        <field name="name">skeen.receta.form</field>
        <field name="model">skeen.receta</field>
        <field name="arch" type="xml">
            <form>
                <sheet>
                    <group>
                        <field name="name"/>
                        <field name="categoria"/>
                        <field name="active"/>
                    </group>
                    <field name="contenido"/>
                </sheet>
            </form>
        </field>
    </record>

    <!-- Acción para recetas -->
    <record id="action_skeen_receta_tree" model="ir.actions.act_window">
        <field name="name">Recetas</field>
        <field name="res_model">skeen.receta</field>
        <field name="view_mode">tree,form</field>
    </record>

    <!-- Menú Recetas (bajo el menú raíz SKEEN de skeen_citas) -->
    <menuitem id="menu_skeen_recetas" name="Recetas" parent="skeen_citas.menu_skeen_root"
              action="action_skeen_receta_tree" sequence="16"/>
</odoo>
