<?xml version="1.0" encoding="UTF-8"?>
<odoo>
    <data>
        <record id="view_partner_credit_inherit_form" model="ir.ui.view">
            <field name="name">partner.credit.form.inherit</field>
            <field name="model">res.partner</field>
            <field name="type">form</field>
            <field name="inherit_id" ref="base.view_partner_form"/>
            <field name="groups_id" eval="[(4, ref('nice_credit_limit.group_account_credit_control_user'))]"/>
            <field name="arch" type="xml">
                <xpath expr="//notebook/page[@name='sales_purchases']/group" position='inside'>
                    <group name="credit_limit" string="Credit Limit" attrs="{'invisible': ['|',('is_company', '=', False),('customer','=',False)]}">
                        <field name="apply_individual_credit_limit"/>
                        <field name="credit_limit"/>
                    </group>
                </xpath>
            </field>
        </record>
    </data>
</odoo>