summaryrefslogtreecommitdiff
path: root/addons/barcodes/views
diff options
context:
space:
mode:
authorAkash Bhavsar <abh@odoo.com>2017-06-26 17:24:01 +0530
committerAaron Bohy <aab@odoo.com>2017-08-25 15:54:56 +0200
commitb131e9b0ef458e8cc00b0a2eb6c1b4d8dfe889a0 (patch)
tree51589b025dffc424e6e67dfac5c11a35fe88ea42 /addons/barcodes/views
parent7095c32f1cd17a86606e4137ece8baa3034fe74a (diff)
[FIX] barcodes: fix several issues when scanning barcodes
Since the new views, most of the barcodes feature was broken. This commit re-enables the support of commands like 'edit', 'save', 'cancel', 'previous' and 'next'. Also changed javascript event handler to jquery event handler to make barcodes testable in phantomjs.
Diffstat (limited to 'addons/barcodes/views')
-rw-r--r--addons/barcodes/views/barcodes_templates.xml6
1 files changed, 6 insertions, 0 deletions
diff --git a/addons/barcodes/views/barcodes_templates.xml b/addons/barcodes/views/barcodes_templates.xml
index 420a069a491..cb16a40c178 100644
--- a/addons/barcodes/views/barcodes_templates.xml
+++ b/addons/barcodes/views/barcodes_templates.xml
@@ -10,4 +10,10 @@
</xpath>
</template>
+ <template id="qunit_suite" name="barcode_tests" inherit_id="web.qunit_suite">
+ <xpath expr="//t[@t-set='head']" position="inside">
+ <script type="text/javascript" src="/barcodes/static/tests/barcode_tests.js"/>
+ </xpath>
+ </template>
+
</odoo>