summaryrefslogtreecommitdiff
path: root/addons/auth_ldap
diff options
context:
space:
mode:
authorRomeo Fragomeli <rfr@odoo.com>2021-04-30 08:46:41 +0000
committerRomeo Fragomeli <rfr@odoo.com>2021-05-31 09:01:08 +0000
commita11662e525aad9a843acf54b717f3df18d8c2cab (patch)
tree51d0f19620da5c329fcfb3846a42d26f173c4675 /addons/auth_ldap
parentcf1a555ca2bc474ead1ef4fc063e8210678800d9 (diff)
[FIX] point_of_sale: print not working in Mobile App
Before this commit, "document.execCommand" was first method used when attempting to print, due to a bug in Safari for Windows (ndr. which is deprecated as the last version of Safari for Windows is 5.1.7 from may 2012). On the mobile App, the "document.execCommand('print')" call returns "true" even if nothing has actually been done, which therefore prevents from executing "window.print()". After this commit, we execute directly "window.print()" as it's supported by all modern browsers (except Firefox Android, which doesn't support printing at all). Notes: * "document.execCommand" is deprecated and the "print" command isn't even documented * Safari 5.1.7 doesn't support Promise/Async/Await, and therefore not Odoo 13+. References: * https://developer.mozilla.org/en-US/docs/Web/API/Document/execCommand * https://developer.mozilla.org/en-US/docs/Web/API/Window/print * https://caniuse.com/?search=await * https://caniuse.com/?search=promise * https://apple.stackexchange.com/questions/68836/where-can-i-download-safari-for-windows opw-2486818 closes odoo/odoo#70155 Signed-off-by: Pierre Paridans <pparidans@users.noreply.github.com>
Diffstat (limited to 'addons/auth_ldap')
0 files changed, 0 insertions, 0 deletions