<?xml version="1.0" encoding="UTF-8"?>
<odoo>

    <!--ADD GST VERIFIED AND PAN NUMBER FIELDS IN PARTNER FORM VIEW -->
    <record id="view_res_partner_inherit_form" model="ir.ui.view">
        <field name="name">view_res_partner_inherit_form</field>
        <field name="model">res.partner</field>
        <field name="inherit_id" ref="base.view_partner_form"/>
        <field name="arch" type="xml">
            <xpath expr="//sheet/group/group/field[@name='vat']" position="after">
                <value for="vat"/>
                <button name="fetch_address" string="Fetch Address" type="object"
                    class="btn-link oe_edit_only"
                    style="text-decoration:underline;"
                    attrs="{'invisible': [('gst_verified', '!=', False)]}"/>
            </xpath>
            <field name="vat" position="attributes">
                <attribute name="string">GST</attribute>
            </field>
            <field name="category_id" position="after">
                <field name="pan_number"/>
                <field name="gst_verified"/>
            </field>
        </field>
    </record>

    <!-- APPYFLOW KEY IN COMPANY VIEW FORM -->
    <record id="view_appyflow_key_company" model="ir.ui.view">
        <field name="name">view_company_form_appyflow_key</field>
        <field name="model">res.company</field>
        <field name="inherit_id" ref="base.view_company_form"/>
        <field name="arch" type="xml">
            <xpath expr="//form/sheet/notebook/page[@name='general_info']" position="after">
                <page name="appyflow_config" string="AppyFlow Configuration">
                    <group>
                        <field name="appyflow_key"/>
                    </group>
                </page>
            </xpath>
        </field>
    </record>

</odoo>