36 lines
1.9 KiB
XML
36 lines
1.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<record id="l10n_in_view_partner_form" model="ir.ui.view">
|
|
<field name="name">l10n.in.res.partner.vat.inherit</field>
|
|
<field name="model">res.partner</field>
|
|
<field name="priority" eval="90"/>
|
|
<field name="inherit_id" ref="account.view_partner_property_form"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//field[@name='vat']" position="attributes">
|
|
<attribute name="readonly">parent_id</attribute>
|
|
<attribute name="required">l10n_in_gst_treatment in ['regular', 'composition', 'special_economic_zone', 'deemed_export']</attribute>
|
|
</xpath>
|
|
<xpath expr="//field[@name='vat']" position="before">
|
|
<field name="l10n_in_gst_treatment" invisible="'IN' not in fiscal_country_codes" readonly="parent_id"/>
|
|
</xpath>
|
|
<xpath expr="//field[@name='vat']" position="after">
|
|
<field name="l10n_in_pan" placeholder="e.g. ABCTY1234D" invisible="'IN' not in fiscal_country_codes" readonly="parent_id"/>
|
|
</xpath>
|
|
<xpath expr="//sheet" position="before">
|
|
<div class="alert alert-warning" role="alert"
|
|
invisible="not display_pan_warning">
|
|
PAN number is not same as the 3rd to 12th characters of the GST number.
|
|
</div>
|
|
<div class="alert alert-warning mt-1 mb-1" role="alert" invisible="not l10n_in_gst_state_warning or country_code != 'IN'">
|
|
<field name="l10n_in_gst_state_warning"/>
|
|
<a name="action_update_state_as_per_gstin"
|
|
string="update it"
|
|
class="ms-1"
|
|
invisible="country_code != 'IN'"
|
|
type="object"/>
|
|
</div>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</odoo>
|