<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <data>
        <template id="report_viajero_head">
            <t t-set="company" t-value="res_company"></t>
            <style type="text/css">
                .titulo {
                    font-size: 1.9em;
                }
                .titulo2 {
                    font-size: 1.32em;
                }
                .page {
                    margin: 0 auto;
                    font-family: kiro, Verdana, Geneva, sans-serif;
                }
                img {
                    max-width: 100%;
                }
                .cabezera {
                    width: 100%;
                    margin: 0 auto;
                    text-align: center;
                }
                .cabezera p {padding 8em}
                .amount {
                    font-size: 1.4em;
                }
                #datos {
                    text-align: center;
                    padding: 0 15px;
                    font-size: 1.98em;
                }
                .bloque {
                    margin: 5px 0;
                }
                .fecha {
                    font-weight: bold;
                    font-size: 0.98em;
                }
                .firma {
                    width: 80%;
                    border: dotted 1px;
                    height: 80px;
                    margin: 0 auto;
                }
                .legal p {
                    font-size: 0.76em;
                }
                td {
                    font-size: 1.32em;
                }
                .numerocheck {
                    font-size: 1.81em;
                }
                .container-fluid,
                col-md-12,
                row {
                    padding-left: 0 !important;
                    padding-right: 0 !important;
                }
                .text-center {
                    text-align: center;
                }
                .text-justify {
                    text-align: justify;
                }
            </style>
            <img t-attf-src="data:image/*;base64,{{company.checkin_img}}" t-att-alt="company.name"/>
            <p class="titulo">PART OF TRAVELERS ENTRY</p>
            <p class="numerocheck">Document number:
                <strong><span t-field="o.id"/></strong>/
                <span t-if="o.reservation_id.room_id.description_sale"><span t-field="o.reservation_id.folio_id"/>
                    (
                    <span t-field="o.reservation_id.room_id.description_sale"/>)</span>
                <span t-if="not o.reservation_id.room_id.description_sale"><span t-field="o.reservation_id"/></span>
            </p>
            <p class="amount">
                Total amount (Reservation Card):
                <strong><span t-field="o.reservation_id.folio_id.amount_total"/></strong>
            </p>
            <p class="amount">
                <strong>CIF:
                    <span t-field="company.vat"/></strong><br/>
                <strong><span t-field="company.display_name"/></strong><br/>
                <strong><span t-field="company.street"/>
                    <span t-field="company.street2"/></strong><br/>
                <strong><span t-field="company.zip"/>
                    <span t-field="company.city"/></strong><br/></p>
            <p class="titulo2">TRAVELER'S DOCUMENT</p>
        </template>
    </data>
</odoo>
