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

    <record id="view_ai_review_queue_list" model="ir.ui.view">
        <field name="name">encoach.resource.ai.review.list</field>
        <field name="model">encoach.resource</field>
        <field name="arch" type="xml">
            <list string="AI Content Review Queue">
                <field name="name"/>
                <field name="type"/>
                <field name="cefr_level"/>
                <field name="grammar_topic"/>
                <field name="review_status" widget="badge" decoration-info="review_status == 'pending'" decoration-success="review_status == 'approved'" decoration-danger="review_status == 'rejected'"/>
                <field name="create_date"/>
            </list>
        </field>
    </record>

    <record id="action_ai_review_queue" model="ir.actions.act_window">
        <field name="name">AI Content Review</field>
        <field name="res_model">encoach.resource</field>
        <field name="view_mode">list,form</field>
        <field name="domain">[('ai_generated', '=', True)]</field>
        <field name="context">{'search_default_pending_review': 1}</field>
    </record>

</odoo>
