diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
| commit | 3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch) | |
| tree | a44932296ef4a9b71d5f010906253d8c53727726 /addons/point_of_sale/static/src/xml/ChromeWidgets/DebugWidget.xml | |
| parent | 0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff) | |
initial commit 2
Diffstat (limited to 'addons/point_of_sale/static/src/xml/ChromeWidgets/DebugWidget.xml')
| -rw-r--r-- | addons/point_of_sale/static/src/xml/ChromeWidgets/DebugWidget.xml | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/addons/point_of_sale/static/src/xml/ChromeWidgets/DebugWidget.xml b/addons/point_of_sale/static/src/xml/ChromeWidgets/DebugWidget.xml new file mode 100644 index 00000000..6e67512e --- /dev/null +++ b/addons/point_of_sale/static/src/xml/ChromeWidgets/DebugWidget.xml @@ -0,0 +1,93 @@ +<?xml version="1.0" encoding="UTF-8"?> +<templates id="template" xml:space="preserve"> + + <t t-name="DebugWidget" owl="1"> + <Draggable limitArea="'.pos'"> + <div class="debug-widget"> + <header class="drag-handle"> + <h1>Debug Window</h1> + </header> + <div class="toggle" t-on-click="trigger('toggle-debug-widget')" title="Dismiss" + role="img" aria-label="Dismiss"><i class="fa fa-times" /></div> + <div class="content"> + <p class="category">Electronic Scale</p> + <ul> + <li> + <input t-model="state.weightInput" type="text" class="weight"></input> + </li> + <li class="button set_weight" t-on-click="setWeight">Set Weight</li> + <li class="button reset_weight" t-on-click="resetWeight">Reset</li> + </ul> + + <p class="category">Barcode Scanner</p> + <ul> + <li> + <input t-model="state.barcodeInput" type="text" class="ean"></input> + </li> + <li class="button barcode" t-on-click="barcodeScan">Scan</li> + <li class="button custom_ean" t-on-click="barcodeScanEAN">Scan EAN-13</li> + </ul> + + <p class="category">Orders</p> + + <ul> + <li class="button" t-on-click="deleteOrders"> + Delete Paid Orders + </li> + <li class="button" t-on-click="deleteUnpaidOrders"> + Delete Unpaid Orders + </li> + <li t-if="!state.isPaidOrdersReady" class="button" + t-on-click="preparePaidOrders"> + Export Paid Orders + </li> + <a t-else="" t-att-download="paidOrdersFilename" t-att-href="paidOrdersURL" + t-on-click="state.isPaidOrdersReady = !state.isPaidOrdersReady"> + <li class="button"> + Download Paid Orders + </li> + </a> + <li t-if="!state.isUnpaidOrdersReady" class="button" + t-on-click="prepareUnpaidOrders"> + Export Unpaid Orders + </li> + <a t-else="" t-att-download="unpaidOrdersFilename" + t-att-href="unpaidOrdersURL" + t-on-click="state.isUnpaidOrdersReady = !state.isUnpaidOrdersReady"> + <li class="button"> + Download Unpaid Orders + </li> + </a> + <li class="button import_orders" style="position:relative"> + Import Orders + <input t-on-change="importOrders" type="file" + style="opacity:0;position:absolute;top:0;left:0;right:0;bottom:0;margin:0;cursor:pointer" /> + </li> + </ul> + + <p class="category">Hardware Status</p> + <ul> + <li class="status weighing">Weighing</li> + <li class="button display_refresh" t-on-click="refreshDisplay"> + Refresh Display + </li> + </ul> + <p class="category">Hardware Events</p> + <ul> + <li class="event" t-ref="open_cashbox">Open Cashbox</li> + <li class="event" t-ref="print_receipt">Print Receipt</li> + <li class="event" t-ref="scale_read">Read Weighing Scale</li> + </ul> + <p class="category">Others</p> + <ul> + <li class="event"> + <span>Buffer: </span> + <t t-esc="bufferRepr" /> + </li> + </ul> + </div> + </div> + </Draggable> + </t> + +</templates> |
