Odoo Help

3

1
5 Answers
4
E.M.
2015/10/25 上午7:37

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
2015/10/26 上午2:24

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
2015/10/26 上午2:26

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

1
Jaydeep Barot (jar)
2015/10/26 上午12:41

I found the answer. It's working fine.

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

0
Jordy Blankestijn
2019/2/11 下午7:19

In Odoo 11.0 it will be :

<span t-esc="'%.0f'% l.quantity "/>
Ask a Question
Writer
408
E.M.
Keep Informed
2 follower(s)
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 eLearning platform and experience all Odoo Apps through learning videos, use cases and quizzes.

Test it now