<?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">
            <xpath expr="//field[@name='partner_id']" position="after">
                <field name="country_code" invisible="1"/>
                <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 name="l10n_in_gst_treatment"
                    invisible="country_code != 'IN'"
                    readonly="state not in ['draft', 'sent']"
                    required="country_code == 'IN'"/>
            </xpath>
        </field>
    </record>
</odoo>
