<odoo>
    <!-- Simplified Kitchen View for POS Order Lines -->
    <record id="view_pos_order_line_kitchen_tree" model="ir.ui.view">
        <field name="name">pos.order.line.kitchen.tree</field>
        <field name="model">pos.order.line</field>
        <field name="arch" type="xml">
            <tree string="Kitchen Orders" create="false" edit="false">
                <field name="order_id"/>
                <field name="product_id"/>
                <field name="qty"/>
                <field name="customer_note" string="Special Instructions"/>
            </tree>
        </field>
    </record>

    <record id="action_restaurant_kitchen_orders" model="ir.actions.act_window">
        <field name="name">Kitchen Display</field>
        <field name="type">ir.actions.act_window</field>
        <field name="res_model">pos.order.line</field>
        <field name="view_mode">tree,form</field>
        <field name="view_id" ref="view_pos_order_line_kitchen_tree"/>
        <field name="domain">[('order_id.state', 'in', ['paid', 'done'])]</field>
        <field name="help" type="html">
            <p class="o_view_nocontent_smiling_face">
                No orders for the kitchen yet!
            </p>
        </field>
    </record>

    <!-- Update the menu item to use this action -->
    <record id="menu_restaurant_kds_orders" model="ir.ui.menu">
        <field name="name">Kitchen Display</field>
        <field name="parent_id" ref="point_of_sale.menu_point_root"/>
        <field name="action" ref="action_restaurant_kitchen_orders"/>
        <field name="sequence">30</field>
    </record>
</odoo>
