Chart in qweb pdf report - odoo 14

Viewed 60

Is there a way to print a bar chart within a qweb report?

I'm trying to use the t-raw property, but this doesn't seem to run javascript (I'm trying to embed Char.js)

This is what I did, but it just prints it, it doesn't run the javascript before rendering the report:

            <div id="prueba">
            Este texto no ha sido remplazado
            </div>


            <t t-set="meses"/>
            <t t-raw="datos">
                document.getElementById('prueba').innerHTML = '<h1>Remplazado!</h1>';




            </t>

How can I achieve this?

0 Answers
Related