| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<odoo> |
| 3 |
|
| 4 |
<record id="view_partner_latam_form" model="ir.ui.view"> |
| 5 |
<field name="name">view_partner_latam_form</field> |
| 6 |
<field name="inherit_id" ref="base_vat.view_partner_base_vat_form"/> |
| 7 |
<field name="model">res.partner</field> |
| 8 |
<field name="priority">100</field> |
| 9 |
<field type="xml" name="arch"> |
| 10 |
<xpath expr="//label[@for='vat']" position="replace"> |
| 11 |
<label for="l10n_latam_identification_type_id" string="Identification Number" invisible="is_vat and 'LATAMID' not in fiscal_country_group_codes"/> |
| 12 |
<label for="vat" string="Tax ID" invisible="not is_vat or 'LATAMID' in fiscal_country_group_codes"/> |
| 13 |
</xpath> |
| 14 |
<xpath expr="//field[@name='vat']" position="replace"> |
| 15 |
<field name="l10n_latam_identification_type_id" options="{'no_open': True, 'no_create': True}" |
| 16 |
placeholder="Type" class="oe_inline" required="True" readonly="parent_id" |
| 17 |
domain="country_id and ['|', ('country_id', '=', False), ('country_id', '=', country_id)] or []" |
| 18 |
invisible="is_vat and 'LATAMID' not in fiscal_country_group_codes"/> |
| 19 |
<span class="oe_read_only" invisible="is_vat and 'LATAMID' not in fiscal_country_group_codes"> - </span> |
| 20 |
<field name="vat" placeholder="Number" class="oe_inline" /> |
| 21 |
</xpath> |
| 22 |
</field> |
| 23 |
</record> |
| 24 |
|
| 25 |
</odoo> |