| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<odoo> |
| 3 |
<template id="report_userlabel"> |
| 4 |
<t t-call="web.basic_layout"> |
| 5 |
<div class="page"> |
| 6 |
<div class="oe_structure"></div> |
| 7 |
<t t-foreach="docs" t-as="user"> |
| 8 |
<div class="col-6 mb92"> |
| 9 |
<div class="oe_structure"></div> |
| 10 |
<table class="table table-bordered"> |
| 11 |
<thead> |
| 12 |
<tr> |
| 13 |
<th class="col-4 danger">Badge ID</th> |
| 14 |
<th class="active">Name</th> |
| 15 |
</tr> |
| 16 |
</thead> |
| 17 |
<tbody> |
| 18 |
<tr> |
| 19 |
<td> |
| 20 |
<span t-if="user.sudo().barcode" t-field="user.sudo().barcode" t-options="{'widget': 'barcode', 'symbology': 'EAN13', 'width': 300, 'height': 50, 'img_style': 'width:100%;height:35%;'}">1234567890</span> |
| 21 |
</td> |
| 22 |
<td><strong><span t-field="user.name">Marc Demo</span></strong></td> |
| 23 |
</tr> |
| 24 |
</tbody> |
| 25 |
</table> |
| 26 |
<div class="oe_structure"></div> |
| 27 |
</div> |
| 28 |
</t> |
| 29 |
<div class="oe_structure"></div> |
| 30 |
</div> |
| 31 |
</t> |
| 32 |
</template> |
| 33 |
</odoo> |