Skip to Content
Menu
This question has been flagged
1 Odpoveď
6233 Zobrazenia

I have added this code into invoice report template:

 <t t-set="tax" t-value="o._get_tax_amount_by_group()"/>
 <t t-js="ctx" >
   console.log("tax is", ctx.tax);
 </t>
but when I print an invoice, the command "console.log" is printed as static text.

It show  this "console.log("tax is", ctx.tax);"

How can I solve this issue?

thanks

Avatar
Zrušiť
Best Answer

Hi Alessandro Romano

That is not intended to be used in reports, it's for the qweb javascript implementation, reports run under python qweb implementation

Avatar
Zrušiť
Autor

thanks. Can you tell me if some test/debug method exist for report template?

try directly output the debug content to the report itself using t-raw or t-esc

Related Posts Replies Zobrazenia Aktivita
3
dec 16
5712
3
aug 20
10546
0
jan 24
1731
0
jan 24
1427
0
sep 23
2115