Debian Codegraph @

addons/l10n_latam_base/views/portal_address_templates.xml

raw
1 <?xml version="1.0" encoding="utf-8"?>
2 <odoo>
3
4 <template id="address_form_fields" inherit_id="portal.address_form_fields">
5 <div id="div_vat" position="before">
6 <div t-if="is_used_as_billing and is_latam_country" class="col-xl-6 mb-3">
7 <label class="col-form-label" for="l10n_latam_identification_type_id">
8 Identification Type
9 </label>
10 <select
11 t-if="is_commercial_address and can_edit_vat"
12 name="l10n_latam_identification_type_id"
13 class="form-select"
14 >
15 <option value="">Identification Type...</option>
16 <option
17 t-foreach="identification_types"
18 t-as="id_type"
19 t-att-value="id_type.id"
20 t-att-selected="id_type.id == identification_type.id"
21 t-out="id_type.name"
22 />
23 </select>
24 <p
25 t-else=""
26 class="form-control"
27 t-out="identification_type.name"
28 readonly="1"
29 title="Changing Identification type is not allowed once document(s) have been
30 issued for your account. Please contact us directly for this operation."
31 />
32 <input
33 t-if="not (is_commercial_address and can_edit_vat)"
34 type="hidden"
35 readonly="1"
36 name="l10n_latam_identification_type_id"
37 t-att-value="identification_type.id"
38 />
39 </div>
40 </div>
41 </template>
42
43 </odoo>