We have our own html2plaintext, already used in lot of use cases instead of just a few for the html2txt library. Notably for emails: most emails going through Odoo stack use our simple html2plaintext to format the body alternative. When no body alternative is given to ``build_email`` an alternative is built using the library to remove. Using our own parser allows to have the same results compared to using ``MailMail.send()``. Difference lies in spaces and new lines as well as markdown. Our html2plaintext is a bit simple and does not try to generate Markdown but generates a simple plaintext version. This also helps solving some issues with depending on that library. Task-2702034 closes odoo/odoo#82486 X-original-commit: b3b9627b655cd7cb928925affed6cc8d92661e8d Related: odoo/enterprise#23364 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Printing pages from Odoo result in missing footer and header, as per #977534 and #885833. There is currently no Debian-supported workaround for that, as Debian does not ship a wkhtmltopdf version built against a patched version of qt. wkhtmltopdf's upstream proposes a package[0] that has been briefly tested and proved to work with 14.0.0+dfsg.2-1 in sid, it is still still officially considered as unsupported. [0] https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.buster_amd64.deb -- Sebastien Delafond <seb@debian.org>, Wed, 16 Dec 2020 08:17:10 +0100