summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorRomeo Fragomeli <rfr@odoo.com>2020-02-20 11:25:57 +0000
committerRomeo Fragomeli <rfr@odoo.com>2020-02-21 16:45:24 +0000
commit2498b5ba236ad0e86dc9281a343715a00cd859a6 (patch)
tree8c7d4dfc727983b56e711a7d48ee60bd5371d627 /addons
parente0231481d63a47ad2369d2958e97c98db5a9e889 (diff)
[FIX] barcode: input text is visible
Before this commit, in mobile, the input to handle the input event of scanner was visible but with a negative z-index to be in the back of Odoo viewport. After this commit, in mobile, the input is transparent (opacity 0) and so is not visible anymore but it's still present. Steps to reproduce: * Go to app switcher (in mobile) * Scan a barcode with a hardware scanner BUG closes odoo/odoo#45975 X-original-commit: b2b1e68e541966ad832e03fbc230418d14c85616 Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
Diffstat (limited to 'addons')
-rw-r--r--addons/barcodes/static/src/js/barcode_events.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/barcodes/static/src/js/barcode_events.js b/addons/barcodes/static/src/js/barcode_events.js
index b07cf7bd19b..3e6cd2b258a 100644
--- a/addons/barcodes/static/src/js/barcode_events.js
+++ b/addons/barcodes/static/src/js/barcode_events.js
@@ -58,6 +58,7 @@ var BarcodeEvents = core.Class.extend(mixins.PropertiesMixin, {
'top': '50%',
'transform': 'translateY(-50%)',
'z-index': '-1',
+ 'opacity': '0',
},
});
// Avoid to show autocomplete for a non appearing input