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

         <!--  Partners inherited form -->

        <record id="view_speaker_partner_info_form" model="ir.ui.view">
            <field name="name">res.partner.speaker.info.inherit</field>
            <field name="model">res.partner</field>
            <field name="type">form</field>
            <field name="inherit_id" ref="base.view_partner_form"/>
            <field name="arch" type="xml">
                <field name="supplier" position="after">
                    <field name="speaker"/>
                </field>
            </field>
       </record>
       <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="type">form</field>
            <field name="inherit_id" ref="base.view_partner_form"/>
            <field name="arch" type="xml">
                <page string="History" position="inside">
                    <field name="event_ids" colspan="4" nolabel="1">
                        <tree string="Events">
                            <field name="name" string="Event"/>
                            <field name="main_speaker_id"/>
                        </tree>
                    </field>
                    <field name="event_registration_ids" colspan="4" nolabel="1">
                        <tree string="Events Registration">
                            <field name="date" string="Date"/>
                            <field name="event_id" />
                            <field name="partner_invoice_id"/>
                            <field name="nb_register"/>
                            <field name="unit_price"/>
                            <field name="price_subtotal"/>
                            <field name="state"/>
                            <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"/>
                            <button name="button_reg_cancel" string="Cancel Registration" states="draft,open" type="object" icon="gtk-cancel"/>
                        </tree>
                    </field>
                </page>
            </field>
       </record>

   </data>
</openerp>

