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

         <!--  Partners inherited form -->
        <record id="view_task_partner_info_form" model="ir.ui.view">
            <field name="name">res.partner.task.info.inherit</field>
            <field name="model">res.partner</field>
            <field name="inherit_id" ref="base.view_partner_form"/>
            <field name="arch" type="xml">
                <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_task" string="Tasks">
                        <field name="task_ids" colspan="4" nolabel="1">
                            <tree string="Tasks" editable="bottom">
                                <field name="name"/>
                                <field name="user_id"/>
                                <field name="date_deadline"/>
                                <field name="state" invisible="1"/>
                                <button name="do_open" states="pending,draft,done,cancelled" string="Start Task" type="object" icon="gtk-media-play" help="For changing to open state" invisible="context.get('set_visible',False)"/>
                                <button name="action_close" states="draft,pending,open" string="Done" type="object" icon="terp-dialog-close" help="For changing to done state"/>
                            </tree>
                        </field>
                      </group>
                </xpath>
            </field>
       </record>
   </data>
</openerp>
