diff options
| author | Antoine Prieels <anp@odoo.com> | 2019-03-18 10:15:19 +0000 |
|---|---|---|
| committer | Antoine Prieels <anp@odoo.com> | 2019-08-08 11:53:37 +0000 |
| commit | 03b2f7b77dc6189bb485e0b834dba5f6d3d4da2c (patch) | |
| tree | 46df5c8eff19ae44692af874dfd136f6cd1ad519 /addons/point_of_sale/static/src/css | |
| parent | dd7de1bcb65d339e5865afcc980cbb4d171fbb74 (diff) | |
[REF] pos: Replace hw_escpos by PrinterDriver
ESCPOS printers are now supported as IoT Devices, just like any other
printer. We now transform the receipts to JPGs, transform these JPGs
into ESCPOS commands and send them via Cups, adding support for network
printers. Since we now print images, we can now print special
characters and therefore add support for other languages such as
Arabic.
The JPG is generated in the browser, with the help of html2canvas.
`hw_escpos` is left untouched to allow backward compatibility and
should be removed when v12 is no longer supported.
In the PoS, all the code for printing has been moved from ProxyDevice
to a separated JS file.
TaskID: 1939455
Diffstat (limited to 'addons/point_of_sale/static/src/css')
| -rw-r--r-- | addons/point_of_sale/static/src/css/pos.css | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/addons/point_of_sale/static/src/css/pos.css b/addons/point_of_sale/static/src/css/pos.css index c7469711f78..603539760dd 100644 --- a/addons/point_of_sale/static/src/css/pos.css +++ b/addons/point_of_sale/static/src/css/pos.css @@ -1468,6 +1468,11 @@ td { word-wrap: break-word; } +.pos-receipts { + height: 0; + overflow: hidden; +} + @page { margin: 0; } |
