| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<odoo> |
| 3 |
<record id="view_company_form" model="ir.ui.view"> |
| 4 |
<field name="name">res.company.form.inherit.l10n_in_upi</field> |
| 5 |
<field name="model">res.company</field> |
| 6 |
<field name="inherit_id" ref="base.view_company_form"/> |
| 7 |
<field name="arch" type="xml"> |
| 8 |
<xpath expr="//field[@name='currency_id']" position="after"> |
| 9 |
<field name="l10n_in_upi_id" invisible="country_code != 'IN'"/> |
| 10 |
</xpath> |
| 11 |
<xpath expr="//label[@for='name']" position="attributes"> |
| 12 |
<attribute name="invisible">l10n_in_pan_type</attribute> |
| 13 |
</xpath> |
| 14 |
<xpath expr="//label[@for='name']" position="before"> |
| 15 |
<field class="o_form_label mb-0" name="l10n_in_pan_type" invisible="not l10n_in_pan_type"/> |
| 16 |
</xpath> |
| 17 |
<xpath expr="//field[@name='vat']" position="after"> |
| 18 |
<field name="l10n_in_pan_entity_id" invisible="country_code != 'IN'"/> |
| 19 |
<field name="l10n_in_tan" invisible="not l10n_in_pan_entity_id"/> |
| 20 |
</xpath> |
| 21 |
<xpath expr="//sheet" position="before"> |
| 22 |
<div class="alert alert-warning mt-1 mb-1" role="alert" invisible="not l10n_in_gst_state_warning or country_code != 'IN'"> |
| 23 |
<field name="l10n_in_gst_state_warning"/> |
| 24 |
<a name="action_update_state_as_per_gstin" |
| 25 |
string="update it" |
| 26 |
class="ms-1" |
| 27 |
invisible="country_code != 'IN'" |
| 28 |
type="object"/> |
| 29 |
</div> |
| 30 |
</xpath> |
| 31 |
</field> |
| 32 |
</record> |
| 33 |
</odoo> |