<odoo>
    <data>
        <!-- 1. Category for Staff Roles -->
        <record id="module_category_restaurant_staff" model="ir.module.category">
            <field name="name">Restaurant Staff Role</field>
            <field name="description">Select the staff member's primary role.</field>
            <field name="sequence">500</field>
        </record>

        <!-- Kitchen / Chef Role -->
        <record id="group_restaurant_kitchen" model="res.groups">
            <field name="name">Chef / Kitchen Staff</field>
            <field name="category_id" ref="module_category_restaurant_staff"/>
            <field name="implied_ids" eval="[(4, ref('base.group_user'))]"/>
        </record>

        <!-- Waiter Role -->
        <record id="group_restaurant_waiter" model="res.groups">
            <field name="name">Waiter / Captain</field>
            <field name="category_id" ref="module_category_restaurant_staff"/>
            <field name="implied_ids" eval="[(4, ref('base.group_user')), (4, ref('point_of_sale.group_pos_user'))]"/>
        </record>

        <!-- Store Role -->
        <record id="group_restaurant_store_keeper" model="res.groups">
            <field name="name">Store Keeper</field>
            <field name="category_id" ref="module_category_restaurant_staff"/>
            <field name="implied_ids" eval="[(4, ref('base.group_user')), (4, ref('stock.group_stock_user'))]"/>
        </record>

        <!-- Cashier Role -->
        <record id="group_restaurant_cashier" model="res.groups">
            <field name="name">Cashier</field>
            <field name="category_id" ref="module_category_restaurant_staff"/>
            <field name="implied_ids" eval="[(4, ref('group_restaurant_waiter'))]"/>
        </record>

        <!-- Manager Role -->
        <record id="group_restaurant_manager" model="res.groups">
            <field name="name">Manager</field>
            <field name="category_id" ref="module_category_restaurant_staff"/>
            <field name="implied_ids" eval="[(4, ref('group_restaurant_cashier')), (4, ref('point_of_sale.group_pos_manager')), (4, ref('stock.group_stock_user'))]"/>
        </record>

        <!-- Admin / Owner -->
        <record id="group_restaurant_admin" model="res.groups">
            <field name="name">Admin / Owner</field>
            <field name="category_id" ref="module_category_restaurant_staff"/>
            <field name="implied_ids" eval="[(4, ref('group_restaurant_manager')), (4, ref('group_restaurant_kitchen'))]"/>
        </record>
    </data>
</odoo>
