summaryrefslogtreecommitdiff
path: root/addons/pos_mercury
diff options
context:
space:
mode:
authorAntoine Prieels <anp@odoo.com>2019-09-18 11:50:29 +0000
committerAntoine Prieels <anp@odoo.com>2019-09-18 12:13:36 +0000
commit9e11adcf9aba686fffdb0e423fcaad2d4f7859df (patch)
tree17bcf4d31b3bac7e3c0c706ce075e13616522a4f /addons/pos_mercury
parenta5af052d6743677e1838bd2db53d1dea258df551 (diff)
[FIX] point_of_sale: Black receipts
Some parts of the receipts had a black background, making them unreadable. The origin of this problem was that the white background was not applied correctly to the whole receipt. The rest of the receipt had a transparent background which was then changed to black when converting the receipt to an image. The parts of the receipt that had no background were the followings: - The parts that were out of the screen if the receipt was too long. We fix this by explicitly specifying a height when generating the canvas. - `html2canvas` applies the background to a rectangle starting from (0, 0) up to (width, height). In our case, `body` has a margin of 8px. Our receipt was then placed in a rectangle from (8, 8) to (width + 8, height + 8). closes odoo/odoo#37072 Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
Diffstat (limited to 'addons/pos_mercury')
0 files changed, 0 insertions, 0 deletions