9e11adcf9aba686fffdb0e423fcaad2d4f7859df
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>
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, Purchase Management, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
Then follow the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%