summaryrefslogtreecommitdiff
path: root/addons/barcodes/views
diff options
context:
space:
mode:
authorAdrien Dieudonne <adr@odoo.com>2019-03-13 14:41:26 +0000
committerAdrien Dieudonne <adr@odoo.com>2019-03-18 13:16:57 +0000
commit7e33b547714e42c4c3c12557c15c843ba138d2e3 (patch)
tree97e64a648c388fddfe7a86b2a0d9fb449c707baa /addons/barcodes/views
parent2940ee6b356fd167f5ece62c92f9a9e8a770aa7d (diff)
[FIX] barcodes: let focus in number, password, tel, phone inputs
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>
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 cb16a40c178..45b77bd3301 100644
--- a/addons/barcodes/views/barcodes_templates.xml
+++ b/addons/barcodes/views/barcodes_templates.xml
@@ -16,4 +16,10 @@
</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>