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.
 
 
 
 
 

120 lines
8.2 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="report_visitor_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">
<br/>
<table class="table table-condensed"
style="border: 2px solid black !important;">
<tr>
<td width="40%">
<p style="text-align:center;padding-top:10px;">
<img t-if="not o.visitor_id.visitor_image"
t-att-src="'/web/static/src/img/placeholder.png'"
height="120"
border="1"
width="120"/>
<img t-if="o.visitor_id.visitor_image"
t-att-src="image_data_uri(o.visitor_id.visitor_image)"
class="float-left"
alt="Logo"
height="120"
border="1"
width="120"/>
</p>
<p style="text-align:center;">
<strong>
<span t-field="o.visitor_id"/>
</strong>
</p>
</td>
<td width="50%">
<table>
<tr>
<t t-if="o.employee_id">
<td>
<p style="text-align:left;padding-top:10px;">
<strong>
Visitor
ID:
</strong>
</p>
<p style="text-align:left;">
<strong>
Phone:
</strong>
</p>
<t t-if="o.employee_id">
<p style="text-align:left;">
<strong>
Meeting
With:
</strong>
</p>
</t>
<t t-if="o.employee_id">
<p style="text-align:left;">
<strong>
Department:
</strong>
</p>
</t>
</td>
<td>
<p style="text-align:left;padding-top:10px;padding-left:10px;"
t-field="o.name"/>
<p style="text-align:left;padding-left:10px;"
t-field="o.phone"/>
<t t-if="o.employee_id">
<p style="text-align:left;padding-left:10px;"
t-field="o.employee_id"/>
</t>
<t t-if="o.employee_id">
<p style="text-align:left;padding-left:10px;"
t-field="o.department_id"/>
</t>
</td>
</t>
<t t-if="not o.employee_id">
<td>
<p style="text-align:right;padding-top:30px;">
<strong>
VisitorID:
</strong>
</p>
<p style="text-align:right;padding-top:30px;">
<strong>
Phone:
</strong>
</p>
</td>
<td>
<p style="text-align:left;padding-top:30px;"
t-field="o.visitor_id"/>
<p style="text-align:left;padding-top:30px;"
t-field="o.phone"/>
</td>
</t>
</tr>
</table>
</td>
</tr>
</table>
</div>
</center>
</div>
</div>
</t>
</t>
</t>
</template>
</odoo>