[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) <jcb@odoo.com>
Signed-off-by: Pedram Bi Ria (pebr) <pebr@odoo.com>
This commit is contained in:
Pedram (PEBR)
2023-07-04 17:59:51 +02:00
parent 1e8a7cc89e
commit 35d640a2ff
@@ -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;