<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <data>
        <!-- List view -->
        <record id="kyc_allowed_countries_list_view" model="ir.ui.view">
            <field name="name">kyc.allowed.countries.list</field>
            <field name="model">kyc.allowed.countries</field>
            <field name="arch" type="xml">
                <list string="Allowed Countries">
                    <field name="country_id"/>
                    <field name="is_active"/>
                    <field name="created_date"/>
                </list>
            </field>
        </record>

        <!-- Form view -->
        <record id="kyc_allowed_countries_form_view" model="ir.ui.view">
            <field name="name">kyc.allowed.countries.form</field>
            <field name="model">kyc.allowed.countries</field>
            <field name="arch" type="xml">
                <form string="Allowed Country">
                    <sheet>
                        <group>
                            <field name="country_id"/>
                            <field name="is_active"/>
                            <field name="created_date" readonly="1"/>
                        </group>
                    </sheet>
                </form>
            </field>
        </record>

        <!-- Action -->
        <record id="kyc_allowed_countries_action" model="ir.actions.act_window">
            <field name="name">Allowed Countries</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">kyc.allowed.countries</field>
            <field name="view_mode">list,form</field>
            <field name="help" type="html">
                <p class="o_view_nocontent_smiling_face">
                    Create the first allowed country for KYC!
                </p>
                <p>
                    Manage countries where KYC verification is available.
                </p>
            </field>
        </record>

        <!-- Menu -->
        <menuitem id="kyc_allowed_countries_menu"
                  name="Allowed Countries"
                  parent="menu_kyc_main"
                  action="kyc_allowed_countries_action"
                  sequence="20"/>

    </data>
</odoo>