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.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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.
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
Thank you, it works :)
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.
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
0
Dec 17
|
2872 | ||
|
1
Sep 17
|
4020 | ||
|
2
Feb 17
|
6073 | ||
|
1
Aug 16
|
14880 | ||
|
0
Jan 16
|
2604 |