<?xml version="1.0" encoding="UTF-8"?>
<odoo>
    <data>
        <record id="view_hms_customer_tree" model="ir.ui.view">
            <field name="name">Customer</field>
            <field name="model">hms.customer</field>
            <field name="arch" type="xml">
                <list>
                    <field name="bid"/>
                    <field name="firstName"/>
                    <field name="lastName"/>
                    <field name="middleName"/>
                    <field name="birthDate"/>
                    <field name="citizenshipCode"/>
                    <field name="gender"/>
                </list>
            </field>
        </record>

        <record id="view_hms_customer_form" model="ir.ui.view">
            <field name="name">Customer</field>
            <field name="model">hms.customer</field>
            <field name="arch" type="xml">
                <form edit="0">
                    <header>

                    </header>
                    <sheet>
                        <group class="oe_title">
                            <h1><field name="bid"/></h1>
                        </group>
                        <group>
                            <group>
                                <field name="firstName"/>
                                <field name="lastName"/>
                                <field name="middleName"/>
                            </group>
                            <group>
                                <field name="birthDate"/>
                                <field name="citizenshipCode"/>
                                <field name="gender"/>
                                <field name="status"/>
                            </group>
                            <group>
                                <field name="emails" widget="many2many_tags"/>
                                <field name="phones" widget="many2many_tags"/>
                            </group>
                        </group>
                    </sheet>
                </form>
            </field>
        </record>

        <!-- <record id="view_hms_customer_graph" model="ir.ui.view">
            <field name="name">Customer</field>
            <field name="model">hms.customer</field>
            <field name="arch" type="xml">
                <graph string="Customers" type="line" sample="1">
                    <field name="citizenshipCode"/>
                    <field name="gender" type="measure"/>
                </graph>
            </field>
       </record> -->

        <record id="action_hms_customer_action" model="ir.actions.act_window">
            <field name="name">Customer</field>
            <field name="res_model">hms.customer</field>
            <field name="view_mode">list,form,pivot,graph</field>
            <field name="help" type="html">
                <p class="o_view_nocontent_smiling_face">
                    Create your first customer record.
                </p>
            </field>
        </record>

        <menuitem id="menu_hms_customer" name="Customers" parent="customers_and_partners_root_menu" sequence="30" action="action_hms_customer_action"/>
    </data>
</odoo>
