Odoo Help


This community 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.


How to display 2 decimals for particular field in Qweb Report?

on 4/27/16, 12:01 AM 584 views

Hello Friends,

Can anyone know how to cut down 2 digits after decimal,there actually in default displayed 4 digits in Qweb report.

For example:

if value is 123.4556 it will be cut down as 123.46

if value is 1456.0000 then it should displayed as 1456.00

Please help me to resolve this situation.Thanks in advance

Akash Balar
On 4/27/16, 1:26 AM


I Think it's helpful for you. 

<span t-esc="'%.2f'% l.product_uom_qty"/>


Anh Vu
On 4/27/16, 12:33 AM

Hello, you can use formatLang like that:

<div class="number-report">

<span t-esc="formatLang(line.price_subtotal, digits=2)"/>


Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


Asked: 4/27/16, 12:01 AM
Seen: 584 times
Last updated: 4/27/16, 2:05 AM