Before this commit, users wasn't able to input values in some input elements like password, email and phone in mobile. Steps to reproduce: - Go to user - Select Preferences - Select Change password - Try to input something => The focus was lost and the keyboard disappeared In fact, a hidden input always have the focus when no other fields need it. This input is used to intercept a value from a barcode scanner. So now, we added some input types to avoid to set the focus on the barcode input. The barcode input is now always defined (even if not used in desktop) to be able to mock a Chrome mobile environment in a test. opw-1936712 opw-1948266 closes odoo/odoo#31841 Signed-off-by: Pierre Paridans <pparidans@users.noreply.github.com>
26 lines
1.2 KiB
XML
26 lines
1.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<template id="assets_backend" name="barcodes assets" inherit_id="web.assets_backend">
|
|
<xpath expr="." position="inside">
|
|
<script type="text/javascript" src="/barcodes/static/src/js/barcode_parser.js"></script>
|
|
<script type="text/javascript" src="/barcodes/static/src/js/barcode_events.js"></script>
|
|
<script type="text/javascript" src="/barcodes/static/src/js/barcode_form_view.js"></script>
|
|
<script type="text/javascript" src="/barcodes/static/src/js/barcode_field.js"></script>
|
|
</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>
|
|
|
|
<template id="qunit_mobile_suite" name="barcode_mobile_tests" inherit_id="web.qunit_mobile_suite">
|
|
<xpath expr="//t[@t-set='head']" position="inside">
|
|
<script type="text/javascript" src="/barcodes/static/tests/barcode_mobile_tests.js"></script>
|
|
</xpath>
|
|
</template>
|
|
|
|
</odoo>
|