Skip to Content
Menu
This question has been flagged
3 Replies
5747 Views

Hello, I'm using version 8, Odoo, and on the invoice report, qweb, I'd like to add a phrase like this: "The total of this invoice include 20% VAT, which is (total invoice * 20/100).

I have no idea how to do this, please help.

Avatar
Discard
Best Answer

Hi,

to do some calcs in the qweb you can use t-esc tag :

<p>The total of this invoice include 20% VAT, which is <span t-esc="o.amount_total * 20/100"/>            </p>


Hope this could helps 

Avatar
Discard
Author Best Answer

Thank you, it works :)

Avatar
Discard
Best Answer

If am not wrong you wanted to include % symbol in the phrase while printing the report,

If so then add it twice %%. this will be evaluated at the time of rendering the report, and the output will be of single % symbol.

Avatar
Discard
Related Posts Replies Views Activity
0
Dec 17
2872
1
Sep 17
4020
2
Feb 17
6073
1
Aug 16
14880
0
Jan 16
2604