Commit Graph
18 Commits
Author SHA1 Message Date
Antoine Prieels 1e06b56c84 [FIX] point_of_sale: Support RTL languages
The layout of the printed tickets was wrong when using an RTL language.
We fix this and use an older version of html2canvas because the new one
introduced layout issues.
2019-09-06 09:12:25 +00:00
Antoine Prieels 03b2f7b77d [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
2019-08-08 11:53:37 +00:00
Pierre Masereel f72a016389 [FIX] pos_hr: barcode and pin code access rights
Since groups added on fields 'barcode' and 'pin' on hr employee in
rev: c9ca376146

It is not possible anymore to launch the POS when 'pos_hr' module is
installed. Because we don't want to allow users to access in read on all
pin codes and barcodes of employees. We've made a function that will get
a sha1 signature of the barcode and pin code of all employees to store
it in the frontend of POS.

We don't have other solutions concerning the security if we want to keep
the POS working offline. We also know that it is not brute force proof,
as pin code are composed of only digits and you can easily generate the
signatures of all pincodes.

closes odoo/odoo#34447

Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2019-07-01 14:58:44 +00:00
Géry Debongnie 86b6bd5ad1 [REF] point_of_sale,web: move backbone to pos
This rev. moves the backbone library from web to pos, as one of its
two usecases (the search view) has just been removed. From now on,
it is only used in the pos.

Part of task 1893568
2018-12-07 13:16:08 +00:00
Ivan Yelizariev d458ec953b [REM] point_of_sale: remove fastclick.js
It was introduced in 2013, but it's not needed in 2018. According to library's
note: 

"As of late 2015 most mobile browsers - notably Chrome and Safari - no
longer have a 300ms touch delay, so fastclick offers no benefit on newer
browsers, and risks introducing bugs into your application. Consider carefully
whether you really need to use it."

PR #26200
2018-08-07 08:49:18 +02:00
Frederic van der Essen 986f0e9d46 [FIX] point_of_sale: the receipt would not print correctly on first try 2014-08-19 17:15:14 +02:00
Frédéric van der Essen d4e7b6eb96 [WIP] point_of_sale: more perf improvement, this time on the receipt and payment screen + lots of usability improvements and cleanups
bzr revid: fva@openerp.com-20131204172122-mzl4wg4uw51uzdfv
2013-12-04 18:21:22 +01:00
Frédéric van der Essen 14e995b452 [WIP] point_of_sale: improving performance on mobile devices
bzr revid: fva@openerp.com-20131127191750-ob13h0s99b9amsa5
2013-11-27 20:17:50 +01:00
Frédéric van der Essen 9329c3ba9d [WIP] point_of_sale: add fastclick.js to remove tab delay on mobile devices
bzr revid: fva@openerp.com-20131008151940-67uky6vmn52vxyun
2013-10-08 17:19:40 +02:00
Phil Frost 5ff3ae2034 kill the executable bit on things that are clearly not executables or scripts
bzr revid: pfrost@openerpdev-20130103231005-56pglti6uss0jsm5
2013-01-03 18:10:05 -05:00
Antony Lesuisse 8d97d9830d [FIX] remove unused or duplicate files
bzr revid: al@openerp.com-20120813221645-s8n8du7fy2sqhl0g
2012-08-14 00:16:45 +02:00
Frédéric van der Essen 562d105a70 [FIX] point_of_sale: missing file: backbone-0.9.2.js
bzr revid: fva@openerp.com-20120716115424-kn3br23t3c6uidms
2012-07-16 13:54:24 +02:00
Frédéric van der Essen f68c7f936f [IMP] point_of_sale: scrollbar
bzr revid: fva@openerp.com-20120621162352-v8msrulvti2hxjem
2012-06-21 18:23:52 +02:00
Roberto López López (OpenERP) 0f0ecfd90f [imp]
bzr revid: rlo@openerp.com-20120320154620-c5f5o2og5dmai7je
2012-03-20 16:46:20 +01:00
Roberto López López (OpenERP) b66aa99a85 [fix] move jquery.barcodelistener
bzr revid: rlo@openerp.com-20120320084729-x2zo7n01jamsfkt5
2012-03-20 09:47:29 +01:00
niv-openerp e6dd80d6b5 [fix] forgot some things
bzr revid: nicolas.vanhoren@openerp.com-20111004080455-qyd2z0rfdxbi4ecf
2011-10-04 10:04:55 +02:00
niv-openerp dd5f24517e [fix] some problem with web client api modified
bzr revid: nicolas.vanhoren@openerp.com-20111003162833-j911gi9au934thh6
2011-10-03 18:28:33 +02:00
Antony Lesuisse eb1f4410b8 [MERGE] point_of_sale js part manual merge from ~openerp-dev/openerp-web/trunk-pos
bzr revid: al@openerp.com-20110927153203-22mt6akllb4xvk25
2011-09-27 17:32:03 +02:00