[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.
This commit is contained in:
Akash Bhavsar
2017-08-25 15:54:56 +02:00
committed by Aaron Bohy
parent 7095c32f1c
commit b131e9b0ef
6 changed files with 197 additions and 24 deletions
@@ -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>