From 35d640a2ffd2ce9d3c0a448c74f0187fefc3b6ba Mon Sep 17 00:00:00 2001 From: "Pedram (PEBR)" Date: Tue, 4 Jul 2023 06:36:03 +0000 Subject: [PATCH] [FIX] point_of_sale: prevent additional blank page in print receipt Before this commit, when a user tried to print a receipt, sometimes an additional blank page was being printed. This was due to the printed content slightly exceeding the printable area of the page, leading to an unintended second page. To solve this issue, I set the height of all elements to 0 during printing, and explicitly set the height of the receipt container to auto. opw-3376131 closes odoo/odoo#127278 X-original-commit: 81feb39aa937a13b69eeb401215f84a77b57ad08 Signed-off-by: Joseph Caburnay (jcb) Signed-off-by: Pedram Bi Ria (pebr) --- addons/point_of_sale/static/src/scss/pos.scss | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/point_of_sale/static/src/scss/pos.scss b/addons/point_of_sale/static/src/scss/pos.scss index 6285736277d..36ad6b36af3 100644 --- a/addons/point_of_sale/static/src/scss/pos.scss +++ b/addons/point_of_sale/static/src/scss/pos.scss @@ -1781,6 +1781,7 @@ td { } body * { visibility: hidden; + height: 0 !important; } .pos, .pos * { position: static !important; @@ -1794,6 +1795,7 @@ td { visibility: visible; background: white !important; color: black !important; + height: auto !important; } .pos .pos-receipt { margin: 0 !important;