summaryrefslogtreecommitdiff
path: root/addons/point_of_sale/static/src/js/Misc/AbstractReceiptScreen.js
AgeCommit message (Collapse)Author
2021-05-31[FIX] point_of_sale: print not working in Mobile AppRomeo Fragomeli
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>
2020-07-17[IMP] point_of_sale,pos_*: allow users to manage orders in the pos frontendJoseph Caburnay
We now allow invoicing of finalized orders in an open session in this first iteration of order management in the pos frontend. Additionally, receipt reprinting is also introduced. With this feature, we can now reprint the receipt of old orders. closes odoo/odoo#51141 Task-id: 1981354 Related: odoo/enterprise#11690 Related: odoo/upgrade#1472 Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>