Odoo Help

0

Show percentage in invoice report

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

0

Ahmed M.Elmubarak

--Ahmed M.Elmubarak--
3168
| 5 3 5
Sudan
--Ahmed M.Elmubarak--


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

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 

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

Thank you, it works :)

0

deep

--deep--
1736
| 5 5 7
Bengaluru, India
--deep--

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

deep
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.

Register

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)

Stats

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