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

    <record id="view_order_form_inherit_l10n_in_sale" model="ir.ui.view">
        <field name="name">sale.order.form.inherit.l10n.in.sale</field>
        <field name="model">sale.order</field>
        <field name="inherit_id" ref="sale.view_order_form"/>
        <field name="arch" type="xml">
            <field name="partner_id" position="after">
                <field
                    name="l10n_in_reseller_partner_id"
                    groups="l10n_in.group_l10n_in_reseller"
                    invisible="country_code != 'IN'"
                    readonly="state not in ['draft', 'sent']"/>
            </field>
        </field>
    </record>

</odoo>
