summaryrefslogtreecommitdiff
path: root/addons/point_of_sale/views/report_userlabel.xml
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
commit3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch)
treea44932296ef4a9b71d5f010906253d8c53727726 /addons/point_of_sale/views/report_userlabel.xml
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/point_of_sale/views/report_userlabel.xml')
-rw-r--r--addons/point_of_sale/views/report_userlabel.xml27
1 files changed, 27 insertions, 0 deletions
diff --git a/addons/point_of_sale/views/report_userlabel.xml b/addons/point_of_sale/views/report_userlabel.xml
new file mode 100644
index 00000000..33281bb4
--- /dev/null
+++ b/addons/point_of_sale/views/report_userlabel.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+<template id="report_userlabel">
+ <t t-call="web.basic_layout">
+ <div class="page">
+ <t t-foreach="docs" t-as="user">
+ <div class="col-6 mb92">
+ <table class="table table-bordered">
+ <thead>
+ <tr>
+ <th class="col-4 danger"/>
+ <th class="active"/>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td><img t-if="user.barcode" t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s' % ('EAN13', user.barcode, 300, 50)" style="width:100%;height:35%;" alt="Barcode"/></td>
+ <td><strong t-field="user.name"/></td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ </t>
+ </div>
+ </t>
+</template>
+</odoo>