HTML template doesn't render HTML content correctly from richtext field.
Related to https://discuss.tryton.org/t/how-to-render-a-template-displaying-html-field-in-formated-text/6146
Report use weasyprint to generate report from HTML, string like <b>Incluye:</b><div><br>
Doesn't render correctly.
decoded_data = html.unescape(data)
You need to unescape before render to display it correctly.
import html
if (weasyprint
and input_format in {'html', 'xhtml'}
and output_format == 'pdf'):
decoded_data = html.unescape(data)
return output_format, weasyprint.HTML(string=decoded_data).write_pdf()