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

        <record id="view_partner_form" model="ir.ui.view">
            <field name="name">res.partner.vat.inherit</field>
            <field name="model">res.partner</field>
            <field name="inherit_id" ref="base_vat.view_partner_form"/>
            <field name="arch" type="xml">
                <xpath expr="//sheet" position="before">
           		    <header>
 				        <button name="button_get_partner_data" attrs="{'invisible': ['|',('vat', '=', False),('is_company', '=', False )]}" colspan="2" string="Get Partner Datas" context="{'active_id': active_id}" type="object" icon="gtk-execute"/>
                	</header>  
           	    </xpath>
                <label for="vat" position="replace"/>
                <div name="vat_info" position="replace">
                     <field name="vat" on_change="base_vat.vat_change(vat)" placeholder="e.g. BE0477472701" class="oe_inline"/>
                     <field name="vat_subjected" class="oe_inline"/>
                </div>
            </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.vat.inherit</field>
            <field name="model">res.partner</field>
            <field name="inherit_id" ref="base_vat.view_partner_form"/>
            <field name="arch" type="xml">
                <xpath expr="//sheet" position="before">
           		    <header>
 				        <button name="button_get_partner_data" attrs="{'invisible': [('vat', '=', False),('is_company', '=', False )]}" colspan="2" string="Get Partner Datas" context="{'active_id': active_id}" type="object" icon="gtk-execute"/>
                	</header>  
           	    </xpath>
                <label for="vat" position="replace"/>
                <div name="vat_info" position="replace">
                     <field name="vat" on_change="base_vat.vat_change(vat)" placeholder="e.g. BE0477472701" class="oe_inline"/>
                     <field name="vat_subjected" class="oe_inline"/>
                </div>
            </field>
        </record>

    </data>
</openerp>


Update button domain to allow create partner.
Update button domain to allow create partner.
