summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorAntoine Prieels <anp@odoo.com>2019-09-03 13:35:18 +0000
committerAntoine Prieels <anp@odoo.com>2019-09-03 13:51:30 +0000
commite5c66b758ab0eb045d4372ea764ee53d585ef382 (patch)
treee0daf503b1db73cd257632a3243bc1ebd595dd06 /addons
parentf9b52670e862ac49a2d3cb48c2d9fc0713941f69 (diff)
[FIX] point_of_sale: Receipt color after print
The color of the displayed receipt slightly changed after clicking on "Print Receipt".
Diffstat (limited to 'addons')
-rw-r--r--addons/point_of_sale/static/src/js/printers.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/point_of_sale/static/src/js/printers.js b/addons/point_of_sale/static/src/js/printers.js
index 761ae01c12b..befb35ce840 100644
--- a/addons/point_of_sale/static/src/js/printers.js
+++ b/addons/point_of_sale/static/src/js/printers.js
@@ -47,9 +47,9 @@ var PrinterMixin = {
htmlToImg: function (receipt) {
var self = this;
$('.pos-receipts').html(receipt);
- $('.pos-receipt').addClass('pos-receipt-print');
+ $('.pos-receipts>.pos-receipt').addClass('pos-receipt-print');
var promise = new Promise(function (resolve, reject) {
- html2canvas($('.pos-receipt')[0], {
+ html2canvas($('.pos-receipt-print')[0], {
ignoreElements: function (node) {
// By default, html2canvas copies the whole DOM even if we just capture a part
// of it. When copying the list of products, it gets all of the product from the