Está en la página 1de 3

<t t-name="maquinaria.

informe">
<div class="page">
<p><h1>Informe de Maquinaria</h1></p>
<t t-set="maquinaria" t-value="docs"/>
</div>
<div>
<strong>Tipo de Máquinaria: </strong>
<span t-field="maquinaria.x_name"/>
</div>
<div>
<strong>Modelo: </strong>
<span t-field="maquinaria.x_modelo"/>
</div>
<div>
<strong>Matrícula: </strong>
<span t-field="maquinaria.x_matricula"/>
</div>
<div>
<strong>Fecha de Compra: </strong>
<span t-field="maquinaria.x_ano_compra"/>
</div>
<div>
<strong>Precio: </strong>
<span t-field="maquinaria.x_precio"/>
</div>
<div>
<strong>Proveedor: </strong>
<span t-field="maquinaria.x_proveedor"/>
</div>
<div>
<strong>Máquinaria Reparada: </strong>
<t t-if="maquinaria.x_reparada">
<span>SI</span>
</t>
<t t-if="not maquinaria.x_reparada">
<span>NO</span>
</t>

</div>
</t>

------------------------------------
<t t-name="maquinaria.informe">
<div class="page">
<p><h1>Informe de Maquinaria</h1></p>
<t t-set="maquinaria" t-value="docs"/>
</div>
<div>
<table>
<thead>
<th>Tipo Maquinaria</th>
<th>Modelo</th>
<th>Matrícula</th>
<th>Fecha Compra</th>
<th>Precio</th>
<th>Proveedor</th>
<th>Reparada</th>
</thead>
<tbody>
<t>
<tr>
<td>
<span t-field="maquinaria.x_name"/>
</td>
<td>
<span t-field="maquinaria.x_modelo"/>
</td>
<td>
<span t-field="maquinaria.x_matricula"/>
</td>
<td>
<span t-field="maquinaria.x_ano_compra"/>
</td>
<td>
<span t-field="maquinaria.x_precio"/>
</td>
<td>
<span t-field="maquinaria.x_proveedor"/>
</td>
<td>
<t t-if="maquinaria.x_reparada">
<span>SI</span>
</t>
<t t-if="not maquinaria.x_reparada">
<span>NO</span>
</t>
</td>
</tr>
</t>
</tbody>
</table>
</div>
</t>
------------------------------

<t>
<div class="page">
<img src="/mnt/odoo_docker/extra-addons/logo.jpg" alt="Logo"
style="width:200px;height:100px;"/>
<p><h1>Informe de Maquinaria</h1></p>
<t t-set="maquinaria" t-value="docs"/>

<table class="table table-sm o_main_table">


<thead>
<th>Tipo Maquinaria</th>
<th>Modelo</th>
<th>Matrícula</th>
<th>Fecha Compra</th>
<th>Precio</th>
<th>Proveedor</th>
<th>Reparada</th>
</thead>
<tbody>
<t>
<tr>
<td>
<span t-field="maquinaria.x_name"/>
</td>
<td>
<span t-field="maquinaria.x_modelo"/>
</td>
<td>
<span t-field="maquinaria.x_matricula"/>
</td>
<td>
<span t-field="maquinaria.x_ano_compra"/>
</td>
<td>
<span t-field="maquinaria.x_precio"/>
</td>
<td>
<span t-field="maquinaria.x_proveedor"/>
</td>
<td>
<t t-if="maquinaria.x_reparada">
<span>SI</span>
</t>
<t t-if="not maquinaria.x_reparada">
<span>NO</span>
</t>
</td>
</tr>
</t>
</tbody>
</table>
</div>

</t>

También podría gustarte