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

    <record id="view_ielts_check_form" model="ir.ui.view">
        <field name="name">encoach.ielts.standards.check.form</field>
        <field name="model">encoach.ielts.standards.check</field>
        <field name="arch" type="xml">
            <form string="IELTS Standards Check">
                <sheet>
                    <group>
                        <group>
                            <field name="content_id"/>
                            <field name="content_type"/>
                            <field name="check_type"/>
                        </group>
                        <group>
                            <field name="passed"/>
                            <field name="checked_at"/>
                        </group>
                    </group>
                    <group>
                        <field name="error_detail"/>
                    </group>
                </sheet>
            </form>
        </field>
    </record>

    <record id="view_ielts_check_list" model="ir.ui.view">
        <field name="name">encoach.ielts.standards.check.list</field>
        <field name="model">encoach.ielts.standards.check</field>
        <field name="arch" type="xml">
            <list string="IELTS Standards Checks">
                <field name="content_type"/>
                <field name="check_type"/>
                <field name="passed" widget="badge" decoration-success="passed" decoration-danger="not passed"/>
                <field name="checked_at"/>
            </list>
        </field>
    </record>

    <record id="view_ielts_check_search" model="ir.ui.view">
        <field name="name">encoach.ielts.standards.check.search</field>
        <field name="model">encoach.ielts.standards.check</field>
        <field name="arch" type="xml">
            <search string="Search IELTS Checks">
                <separator/>
                <filter string="Passed" name="passed" domain="[('passed', '=', True)]"/>
                <filter string="Failed" name="failed" domain="[('passed', '=', False)]"/>
                <separator/>
                <filter string="Passage" name="passage" domain="[('content_type', '=', 'passage')]"/>
                <filter string="Audio" name="audio" domain="[('content_type', '=', 'audio')]"/>
                <filter string="Writing Prompt" name="writing_prompt" domain="[('content_type', '=', 'writing_prompt')]"/>
                <filter string="Speaking Card" name="speaking_card" domain="[('content_type', '=', 'speaking_card')]"/>
            </search>
        </field>
    </record>

    <record id="action_ielts_check" model="ir.actions.act_window">
        <field name="name">IELTS Standards Checks</field>
        <field name="res_model">encoach.ielts.standards.check</field>
        <field name="view_mode">list,form</field>
    </record>

</odoo>
