<commit_before><?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">
                <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"/>
                     <button name="button_get_partner_data" attrs="{'invisible': [ ('is_company', '=', False )]}" colspan="2" string="Get Partner Datas" context="{'active_id': active_id}" type="object" icon="gtk-execute"/>
                     <field name="vat_subjected" class="oe_inline"/>
                </div>
            </field>
        </record>

    </data>
</openerp>

<commit_msg>Update button domain to allow create partner.<commit_after><?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>


{'fraction_non_alphanumeric': 0.17525298988040477, 'fraction_numerical': 0.012879484820607176, 'mean_word_length': 2.4360189573459716, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 2, '>': 47, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7577958', 'n_tokens_mistral': 710, 'n_tokens_neox': 656, 'n_words': 115}