| 1 | <odoo> |
| 2 | <template id="portal_my_details_fields" inherit_id="account.portal_my_details"> |
| 3 | <xpath expr="//t[@t-if='invoice_edi_formats']" position="after"> |
| 4 | <t t-if="partner_sudo.country_id.code == 'MY'"> |
| 5 | <div class="clearfix" /> |
| 6 | <t t-if="len(l10n_my_identification_types) > 1"> |
| 7 | <div class="mb-3 col-xl-6"> |
| 8 | <label class="col-form-label" for="l10n_my_identification_type">ID Type</label> |
| 9 | <select name="l10n_my_identification_type" class="form-select"> |
| 10 | <option value="">select...</option> |
| 11 | <option |
| 12 | t-foreach="l10n_my_identification_types" |
| 13 | t-as="type" |
| 14 | t-att-value="type" |
| 15 | t-att-selected="(l10n_my_identification_type or partner_sudo.l10n_my_identification_type) == type" |
| 16 | t-out="type_value" |
| 17 | /> |
| 18 | </select> |
| 19 | </div> |
| 20 | <div t-attf-class="mb-3 col-xl-6"> |
| 21 | <label class="col-form-label label-optional" for="l10n_my_identification_number">ID Number</label> |
| 22 | <input type="text" name="l10n_my_identification_number" t-attf-class="form-control" t-att-value="l10n_my_identification_number or partner_sudo.l10n_my_identification_number" /> |
| 23 | </div> |
| 24 | </t> |
| 25 | <div t-attf-class="mb-3 col-xl-6"> |
| 26 | <label class="col-form-label label-optional" for="l10n_my_edi_industrial_classification">Ind. Classification</label> |
| 27 | <select name="l10n_my_edi_industrial_classification" t-attf-class="form-select"> |
| 28 | <option value="">select...</option> |
| 29 | <option |
| 30 | t-foreach="l10n_my_edi_industrial_classifications" |
| 31 | t-as="industrial_classification" |
| 32 | t-att-value="industrial_classification.id" |
| 33 | t-att-selected="industrial_classification.id == int(l10n_my_edi_industrial_classification) if l10n_my_edi_industrial_classification else industrial_classification.id == partner_sudo.l10n_my_edi_industrial_classification.id" |
| 34 | t-out="industrial_classification.name" |
| 35 | /> |
| 36 | </select> |
| 37 | </div> |
| 38 | </t> |
| 39 | </xpath> |
| 40 | </template> |
| 41 | </odoo> |