<?xml version="1.0"?>
<openerp>
    <data>

         <!--  Partners inherited form -->

       <record id="view_event_partner_info_form" model="ir.ui.view">
            <field name="name">res.partner.event.info.inherit</field>
            <field name="model">res.partner</field>
            <field name="inherit_id" ref="base.view_partner_form"/>
            <field name="arch" type="xml">
                <field name="supplier" position="after">
                    <field name="speaker"/>
                </field>
                <xpath expr="//page[@name='page_history']" position="attributes">
                    <attribute name="invisible">False</attribute>
                </xpath>
                <xpath expr="//page[@name='page_history']" position="inside">
                    <group name="grp_event" string="Events">
                        <field name="event_ids" colspan="4" nolabel="1">
                            <tree string="Events">
                                <field name="name" string="Event"/>
                                <field name="main_speaker_id"/>
                            </tree>
                        </field>
                    </group>
                    <group name="grp_registration" string="Registrations">
                        <field name="event_registration_ids" colspan="4" nolabel="1">
                            <tree string="Events Registration">
                                <field name="event_begin_date" string="Date"/>
                                <field name="event_id" />
                                <field name="nb_register"/>
                                <field name="state"/>
                                <button name="button_reg_cancel" string="Cancel Registration" states="draft,open" type="object" icon="gtk-cancel"/>
                                <button name="button_reg_close" string="Close Registration" states="open" type="object" icon="gtk-close"/>
                                <button name="check_confirm" string="Confirm Registration" states="draft" type="object" icon="gtk-apply"/>
                            </tree>
                        </field>
                    </group>
                </xpath>
            </field>
       </record>

   </data>
</openerp>
