You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

88 lines
5.4 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="report_property_label">
<t t-call="web.html_container">
<t t-foreach="docs" t-as="o">
<t>
<div class="page">
<div class="oe_structure"/>
<div class="row">
<div class="col-xs-2" style="margin:auto;">
</div>
<center>
<div class="col-xs-8" style="margin:auto">
<table class="table table-condensed"
style="border: 3px solid black !important;">
<tr>
<td width="100%">
<p style="text-align:center;padding-top:10px;">
<img t-if="not o.employee_id.image_1920"
t-att-src="'/web/static/src/img/placeholder.png'"
height="120"
border="1"
width="120"/>
<img t-if="o.employee_id.image_1920"
t-att-src="image_data_uri( o.employee_id.image_1920)"
class="float-left"
alt="Logo"
height="120"
border="1"
width="120"/>
</p>
<p style="text-align:center;">
Name :
<strong>
<span t-field="o.employee_id.name"/>
</strong>
</p>
<p style="text-align:center;">
Department :
<strong>
<span t-field="o.employee_id.department_id.name"/>
</strong>
</p>
<h4 style="margin-left:30px">
<b>Personal
Belongings
</b>
</h4>
<table width="90%"
style="border:1px solid black;margin-left:15px">
<thead>
<th style="border:1px solid black;"
width="13%">
Name
</th>
<th style="border:1px solid black;"
width="13%">
Count
</th>
</thead>
<tbody>
<t t-foreach="o.belonging_ids"
t-as="l">
<tr>
<td style="border:1px solid black;">
<span t-esc="l.property_name"
style="font-size:16px;"/>
</td>
<td style="border:1px solid black;">
<span t-esc="l.property_count"
style="font-size:16px;"/>
</td>
</tr>
</t>
</tbody>
</table>
</td>
</tr>
</table>
</div>
</center>
</div>
</div>
</t>
</t>
</t>
</template>
</odoo>