Odoo Help


Show percentage in invoice report

Noah Alama
on 10/27/16, 2:39 AM 945 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.

--Ahmed M.Elmubarak--

Ahmed M.Elmubarak
On 10/27/16, 3:56 AM


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 

Noah Alama
On 11/2/16, 4:51 PM

Thank you, it works :)


Techno-Functional Associate with 7+ years of experience in Odoo (formerly known as OpenERP).

On 10/27/16, 4:44 AM

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.

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 10/27/16, 2:39 AM
Seen: 945 times
Last updated: 11/2/16, 4:51 PM