mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
54 lines
2.2 KiB
XML
54 lines
2.2 KiB
XML
<odoo>
|
|
<template
|
|
id="inherit_pms_l10n_es_portal_my_precheckin_detail"
|
|
inherit_id="pms.portal_my_precheckin_detail"
|
|
>
|
|
<xpath expr="//div[@name='document_type_div']" position="replace">
|
|
<div t-attf-class="form-group col-md-6">
|
|
<label class="col-form-label" for="document_type">Doc. Type</label>
|
|
<div class="d-none"><p id="docTypeId"><t
|
|
t-esc="checkin_partner_id.document_type"
|
|
/></p></div>
|
|
<select
|
|
class="form-control #{error.get('document_type') and 'is-invalid' or ''}"
|
|
name='document_type'
|
|
id="doc_type"
|
|
>
|
|
<option value="">Select an option</option>
|
|
<t t-foreach="doc_type_ids" t-as='doc_type'>
|
|
<option
|
|
t-att-value="doc_type.name"
|
|
t-att-selected="doc_type.name == document_type"
|
|
>
|
|
<t t-esc='doc_type.name' />
|
|
</option>
|
|
</t>
|
|
</select>
|
|
<t t-if="error_message">
|
|
<span
|
|
class="text-danger"
|
|
t-esc="error_message.get('document_type')"
|
|
/>
|
|
</t>
|
|
</div>
|
|
</xpath>
|
|
<xpath expr="//div[@name='document_number_div']" position="replace">
|
|
<div t-attf-class="col-12 col-md-6">
|
|
<label class="col-form-label" for="document_number">Doc. Number</label>
|
|
<input
|
|
type="text"
|
|
name="document_number"
|
|
t-attf-class="form-control #{error.get('document_number') and 'is-invalid' or ''}"
|
|
t-att-value="document_number if document_number and error else ''"
|
|
/>
|
|
<t t-if="error_message">
|
|
<span
|
|
class="text-danger"
|
|
t-esc="error_message.get('document_number')"
|
|
/>
|
|
</t>
|
|
</div>
|
|
</xpath>
|
|
</template>
|
|
</odoo>
|