<?xml version="1.0" encoding="utf-8"?>
<openerp>
	<data>

        <record id="view_partner_form" model="ir.ui.view">
            <field name="name">res.partner.form</field>
            <field name="model">res.partner</field>
            <field name="inherit_id" ref="base.view_partner_form"/>
            <field name="arch" type="xml">
                <notebook>
                    <page string="Samples" name="samples" attrs="{'invisible':[('customer','!=',True)]}">
                        <field name="sample_ids">
                            <tree>
                                <field name="user_id"/>
                                <field name="delivery_date"/>
                                <field name="product_id"/>
                                <field name="return_date"/>
                            </tree>
                        </field>
                    </page>
                </notebook>
            </field>
        </record>
                                          
	</data>
</openerp>

<?xml version="1.0" encoding="utf-8"?>
<openerp>
	<data>

        <record id="view_partner_form" model="ir.ui.view">
            <field name="name">res.partner.form</field>
            <field name="model">res.partner</field>
            <field name="inherit_id" ref="base.view_partner_form"/>
            <field name="arch" type="xml">
                <notebook>
                    <page string="Samples" name="samples" attrs="{'invisible':[('customer','!=',True)]}">
                        <field name="sample_ids">
                            <tree editable="top">
                                <field name="user_id"/>
                                <field name="delivery_date"/>
                                <field name="product_id"/>
                                <field name="return_date"/>
                            </tree>
                        </field>
                    </page>
                </notebook>
            </field>
        </record>
                                          
	</data>
</openerp>

FIX partner sample tree view
FIX partner sample tree view
