<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
        <!-- INHERITED VIEW FOR THE OBJECT : stock_picking -->
        <record id="picking_in_form" model="ir.ui.view">
            <field name="name">crm_claim_rma.picking_in_form</field>
            <field name="model">stock.picking</field>
            <field name="inherit_id" ref="stock.view_picking_form"/>
            <field name="arch" type="xml">
                <xpath expr="//field[@name='state']" position="before">
                        <button name="%(action_stock_picking_from_claim_picking)d"
                                string="Product to stock" type="action"
                                attrs="{'invisible':['|',
                                                    ('state','&lt;&gt;','done'),
                                                    ('claim_id', '=', False)]}"/>
                        <button name="%(action_loss_picking_from_claim_picking)d"
                                string="Product to Loss" type="action"
                                attrs="{'invisible':['|',
                                                    ('state','&lt;&gt;','done'),
                                                    ('claim_id', '=', False)]}"/>
                        <button name="%(action_used_picking_from_claim_picking)d"
                                string="Product to refurbish stock" type="action"
                                attrs="{'invisible':['|',
                                                    ('state','&lt;&gt;','done'),
                                                    ('claim_id', '=', False)]}"/>
                </xpath>
            </field>
        </record>
    </data>
</openerp>
