<?xml version="1.0" encoding="utf-8" ?>
<odoo>
    <!--Copyright 2019 ForgeFlow S.L.-->
    <!--(http://www.forgeflow.com)-->
    <!--License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).-->
    <record id="view_partner_form" model="ir.ui.view">
        <field name="name">res.partner.form</field>
        <field name="model">res.partner</field>
        <field name="inherit_id" ref="base.view_partner_form" />
        <field name="arch" type="xml">
            <group name="sale" position="inside">
                <field name="customer_rank" invisible="1" />
                <field
                    name="default_delivery_block"
                    invisible="(customer_rank &lt;= 0 or not is_company) and parent_id"
                />
            </group>
        </field>
    </record>
</odoo>
