Odoo Help

3
5 Answers
4
E.M.
10/25/15, 7:37 AM

I found the answer somewhere on the internet. I do not know if this is documented somewhere or not:

<span  t-esc="int(l['quantity'])"> 
5
Jessica Dowd
10/26/15, 2:24 AM

There is a much easier way to change this in Odoo 8.

Go to Settings -> Technical -> Decimal Accuracy -> Product UoS (aka Product Quantity) -> *Change Digits to 0

This solution also pulls through to reports/PDF

1 Comment
Limitless Virtual Enterprise, Andre de Kock
10/26/15, 2:26 AM

I agree. Much better to do it in Odoo config which will pull through the entire system.

1
Jaydeep Barot (jar)
10/26/15, 12:41 AM

I found the answer. It's working fine.

<span t-esc="'%.0f'%(l.quantity)"/>

0
Jordy Blankestijn
2/11/19, 7:19 PM

In Odoo 11.0 it will be :

<span t-esc="'%.0f'% l.quantity "/>
Ask a Question
Writer
403
E.M.
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